cvs: smarty /libs Smarty_Compiler.class.php

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1057224681@cvsserver>
messju		Thu Jul  3 05:31:21 2003 EDT

  Modified files:              
    /smarty/libs	Smarty_Compiler.class.php 
  Log:
  applied fix for {$var1->p1|modifier:$var2->p2}-syntax - thanks Dominik
  
  
  
Index: smarty/libs/Smarty_Compiler.class.php
diff -u smarty/libs/Smarty_Compiler.class.php:1.260 smarty/libs/Smarty_Compiler.class.php:1.261
--- smarty/libs/Smarty_Compiler.class.php:1.260	Wed Jul  2 06:56:27 2003
+++ smarty/libs/Smarty_Compiler.class.php	Thu Jul  3 05:31:21 2003
@@ -39,7 +39,7 @@
  * @package Smarty
  */
 
-/* $Id: Smarty_Compiler.class.php,v 1.260 2003/07/02 10:56:27 messju Exp $ */
+/* $Id: Smarty_Compiler.class.php,v 1.261 2003/07/03 09:31:21 messju Exp $ */
 
 /**
  * Template compiling class
@@ -122,7 +122,7 @@
 		// $foo[5][blah]
 		// $foo[5].bar[$foobar][4]
 		$this->_dvar_math_regexp = '[\+\-\*\/\%]';
-		$this->_dvar_math_var_regexp = '[\$\w\.\+\-\*\/\%\d\|\:\>\[\]]';
+		$this->_dvar_math_var_regexp = '[\$\w\.\+\-\*\/\%\d\|\>\[\]]';
 		$this->_dvar_num_var_regexp = '\-?\d+(?:\.\d+)?' . $this->_dvar_math_var_regexp;
 		$this->_dvar_guts_regexp = '\w+(?:' . $this->_var_bracket_regexp
 				. ')*(?:\.\$?\w+(?:' . $this->_var_bracket_regexp . ')*)*(?:' . $this->_dvar_math_regexp . '(?:\-?\d+(?:\.\d+)?|' . $this->_dvar_math_var_regexp . '*))?';



-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.