------- You are receiving this mail because: -------
You are on the CC list for the bug.
http://bugs.exim.org/show_bug.cgi?id=1330
Summary: Lone closing square bracket in JavaScript compatibility
mode
Product: PCRE
Version: 8.32
Platform: x86-64
OS/Version: Linux
Status: NEW
Severity: bug
Priority: medium
Component: Code
AssignedTo: ph10@???
ReportedBy: simon.hausmann@???
CC: pcre-dev@???
When the PCRE_JAVASCRIPT_COMPAT option is set, a lone square bracket causes an
error.
It seems however that this is nowadays a valid expression in JavaScript. With
latest nodejs for example:
$ cat test1.js
new RegExp("]");
$ nodejs test1.js
$
$ cat test2.js
new RegExp("*");
$ nodejs test2.js
/home/shausman/test2.js:1
new RegExp("*");
^
SyntaxError: Invalid regular expression: /*/: Nothing to repeat
at new RegExp (unknown source)
at Object.<anonymous> (/home/shausman/test2.js:1:67)
at Module._compile (module.js:446:26)
at Object..js (module.js:464:10)
at Module.load (module.js:353:32)
at Function._load (module.js:311:12)
at Array.0 (module.js:484:10)
at EventEmitter._tickCallback (node.js:190:39)
--
Configure bugmail:
http://bugs.exim.org/userprefs.cgi?tab=email