Export to GitHub

syntaxhighlighter - issue #88

Problem when firstLine is negative


Posted on Jul 15, 2008 by Quick Rhino

What steps will reproduce the problem? 1. Use a negative value for firstLine

What is the expected output? What do you see instead? li elements should start with your negative value, instead it uses the default value (1) because the regex used to extract firstLine doesn't support negative value

What version of the product are you using? On what operating system? v1.5.1

Please provide any additional information below. you can solve the problem by replacing : var regex = new RegExp('^' + name + '\[(\w+)\]$', 'gi'); by var regex = new RegExp('^' + name + '\[(-?\w+)\]$', 'gi');

at the beginning of the GetOptionValue function

Status: New

Labels:
Type-Defect Priority-Medium