From 5d3d61e5b080c9447449e3aaf11b9f81ae4fea39 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 11 Jun 2014 07:59:45 +0000 Subject: [PATCH] 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 --- etemplate/js/et2_core_phpExpressionCompiler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_core_phpExpressionCompiler.js b/etemplate/js/et2_core_phpExpressionCompiler.js index 63dbabe2ba..558f35a172 100644 --- a/etemplate/js/et2_core_phpExpressionCompiler.js +++ b/etemplate/js/et2_core_phpExpressionCompiler.js @@ -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;