cvs: smarty /libs Smarty_Compiler.class.php

From: Date: Mon, 05 May 2003 18:36:12 +0000
Subject: cvs: smarty /libs Smarty_Compiler.class.php
Groups: php.smarty.cvs 
Request: Send a blank email to php-smarty-cvs+get-588@lists.php.net to get a copy of this message
mohrt Mon May 5 14:36:12 2003 EDT Modified files: /smarty/libs Smarty_Compiler.class.php Log: add % to math Index: smarty/libs/Smarty_Compiler.class.php diff -u smarty/libs/Smarty_Compiler.class.php:1.223 smarty/libs/Smarty_Compiler.class.php:1.224 --- smarty/libs/Smarty_Compiler.class.php:1.223 Mon May 5 10:19:57 2003 +++ smarty/libs/Smarty_Compiler.class.php Mon May 5 14:36:11 2003 @@ -39,7 +39,7 @@ * @package Smarty */ -/* $Id: Smarty_Compiler.class.php,v 1.223 2003/05/05 14:19:57 mohrt Exp $ */ +/* $Id: Smarty_Compiler.class.php,v 1.224 2003/05/05 18:36:11 mohrt Exp $ */ /** * Template compiling class * @package Smarty @@ -112,7 +112,7 @@ // $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:

« previous php.smarty.cvs (#588) next »