only care for regular expression starting with /, as everything else is to ambigious eg. "replys[$row][reply_comment]" has a $ followed by an r, which is also first char of that expression

This commit is contained in:
Ralf Becker 2014-06-11 07:59:45 +00:00
parent 22b6084224
commit 5d3d61e5b0

View File

@ -71,7 +71,7 @@
break;
}
// check for regular expression "/ $/"
if (_p.expr.charAt(_p.pos) == _p.expr.charAt(0))
if (_p.expr.charAt(_p.pos) == '/' && _p.expr.charAt(0) == '/')
{
str += '$';
break;