[Checkins] SVN: z3c.pt/trunk/ allow path expression segments to	start with a digit
    David Glick 
    cvs-admin at zope.org
       
    Sat Dec  1 18:49:14 UTC 2012
    
    
  
Log message for revision 128467:
  allow path expression segments to start with a digit
Changed:
  U   z3c.pt/trunk/CHANGES.txt
  U   z3c.pt/trunk/src/z3c/pt/expressions.py
-=-
Modified: z3c.pt/trunk/CHANGES.txt
===================================================================
--- z3c.pt/trunk/CHANGES.txt	2012-12-01 17:05:18 UTC (rev 128466)
+++ z3c.pt/trunk/CHANGES.txt	2012-12-01 18:49:14 UTC (rev 128467)
@@ -1,6 +1,14 @@
 Changelog
 =========
 
+2.2.4 (unreleased)
+~~~~~~~~~~~~~~~~~~
+
+Bugfixes:
+
+- Allow segments of path expressions to start with a digit.
+
+
 2.2.3 (2012-06-01)
 ~~~~~~~~~~~~~~~~~~
 
Modified: z3c.pt/trunk/src/z3c/pt/expressions.py
===================================================================
--- z3c.pt/trunk/src/z3c/pt/expressions.py	2012-12-01 17:05:18 UTC (rev 128466)
+++ z3c.pt/trunk/src/z3c/pt/expressions.py	2012-12-01 18:49:14 UTC (rev 128467)
@@ -126,8 +126,8 @@
 
 class PathExpr(TalesExpr):
     path_regex = re.compile(
-        r'^(?:(nocall|not):\s*)*((?:[A-Za-z_][A-Za-z0-9_:]*)' +
-        r'(?:/[?A-Za-z_@\-+][?A-Za-z0-9_@\-\.+/:]*)*)$')
+        r'^(?:(nocall|not):\s*)*((?:[A-Za-z0-9_][A-Za-z0-9_:]*)' +
+        r'(?:/[?A-Za-z0-9_@\-+][?A-Za-z0-9_@\-\.+/:]*)*)$')
 
     interpolation_regex = re.compile(
         r'\?[A-Za-z][A-Za-z0-9_]+')
    
    
More information about the checkins
mailing list