[Erp5-report] r14727 - /erp5/trunk/products/ERP5/Document/Telephone.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Jun 7 11:23:19 CEST 2007


Author: bartek
Date: Thu Jun  7 11:23:19 2007
New Revision: 14727

URL: http://svn.erp5.org?rev=14727&view=rev
Log:
country code may have three digits (e.g. Lithuania)

Modified:
    erp5/trunk/products/ERP5/Document/Telephone.py

Modified: erp5/trunk/products/ERP5/Document/Telephone.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Telephone.py?rev=14727&r1=14726&r2=14727&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Telephone.py (original)
+++ erp5/trunk/products/ERP5/Document/Telephone.py Thu Jun  7 11:23:19 2007
@@ -66,7 +66,7 @@
     # +[country]([area])[number]/[extension]
     # or in syntax retured by asText
     # +[country](0)[area]-[number]/[extension]
-    standard_parser = re.compile('\+(?P<country>\d{,2})\(0\)(?P<area>\d+)-(?P<number>[^/]+)(\/(?P<ext>\d+))?')
+    standard_parser = re.compile('\+(?P<country>\d{,3})\(0\)(?P<area>\d+)-(?P<number>[^/]+)(\/(?P<ext>\d+))?')
     input_parser = re.compile('(\+(?P<country>\d*))?(\((?P<area>\d*)\))?(?P<number>[^/]*)(\/(?P<ext>\d+))?')
 
     # Declarative properties




More information about the Erp5-report mailing list