[ZPT] CVS: Releases/Zope/lib/python/Products/PageTemplates - Expressions.py:1.31.10.1

Evan Simpson evan@cvs.zope.org
Mon, 4 Mar 2002 12:15:21 -0500


Update of /cvs-repository/Releases/Zope/lib/python/Products/PageTemplates
In directory cvs.zope.org:/tmp/cvs-serv20224

Modified Files:
      Tag: Zope-2_5-branch
	Expressions.py 
Log Message:
Fix StringExpr regex.


=== Releases/Zope/lib/python/Products/PageTemplates/Expressions.py 1.31 => 1.31.10.1 ===
 
             
-_interp = re.compile(r'\$(%(n)s)|\${(%(n)s(?:/%(n)s)*)}' % {'n': NAME_RE})
+_interp = re.compile(r'\$(%(n)s)|\${(%(n)s(?:/[^}]*)*)}' % {'n': NAME_RE})
 
 class StringExpr:
     def __init__(self, name, expr, engine):