[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools - app.py:1.35

Fred L. Drake, Jr. fred at zope.com
Tue Apr 20 15:01:31 EDT 2004


Update of /cvs-repository/Packages/zpkgtools/zpkgtools
In directory cvs.zope.org:/tmp/cvs-serv25422

Modified Files:
	app.py 
Log Message:
make the regular expression more readable


=== Packages/zpkgtools/zpkgtools/app.py 1.34 => 1.35 ===
--- Packages/zpkgtools/zpkgtools/app.py:1.34	Tue Apr 20 14:42:34 2004
+++ Packages/zpkgtools/zpkgtools/app.py	Tue Apr 20 15:01:30 2004
@@ -529,7 +529,7 @@
     """
     parts = tagname.split("-")
     version = parts[-1].replace("_", ".")
-    m = re.match(r"\d+\.\d+(?:\.\d+(?:\.\d+)?)?(?:[a-z]+\d*)?$", version)
+    m = re.match(r"\d+(\.\d+){1,3}(?:[a-z]+\d*)?$", version)
     if m is None:
         return None
     else:




More information about the Zope-CVS mailing list