diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index cd487653..b34ffce9 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -112,7 +112,7 @@ class Smarty_Compiler extends Smarty { // $foo[5][blah] // $foo[5].bar[$foobar][4] $this->_dvar_guts_regexp = '\w+(?:' . $this->_var_bracket_regexp - . ')*(?:\.\$?\w+(?:' . $this->_var_bracket_regexp . ')*)*(?:\+\+|\-\-|(?:[\+\-\*\/]\-?\d+(?:\.\d+)?))?'; + . ')*(?:\.\$?\w+(?:' . $this->_var_bracket_regexp . ')*)*(?:[\+\-\*\/]\-?\d+(?:\.\d+)?)?'; $this->_dvar_regexp = '\$' . $this->_dvar_guts_regexp; // matches config vars: