Commit 96c0d327 authored by Bartek Górny's avatar Bartek Górny

country code may have three digits (e.g. Lithuania)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14727 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 35709cfb
...@@ -66,7 +66,7 @@ class Telephone(Coordinate, Base): ...@@ -66,7 +66,7 @@ class Telephone(Coordinate, Base):
# +[country]([area])[number]/[extension] # +[country]([area])[number]/[extension]
# or in syntax retured by asText # or in syntax retured by asText
# +[country](0)[area]-[number]/[extension] # +[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+))?') input_parser = re.compile('(\+(?P<country>\d*))?(\((?P<area>\d*)\))?(?P<number>[^/]*)(\/(?P<ext>\d+))?')
# Declarative properties # Declarative properties
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment