From 2af5e72a7c19c28c1374487a699a342169bc4632 Mon Sep 17 00:00:00 2001 From: mohrt Date: Mon, 5 May 2003 18:36:11 +0000 Subject: [PATCH] add % to math --- libs/Smarty_Compiler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index b34ffce9..0fbfda8a 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: