X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FPersons.py;h=bcfd565c3d3eb5ab72e0600931103c416f42a4b1;hb=9a8ed6b392fbcaa0e3dc5cc7c104346707f05103;hp=d5ee82f60d8e2bb4e4a88dc59a29dbde5741fb21;hpb=f6d8e5f98598313ace6aee6420521acfcb3bd418;p=plcapi.git diff --git a/PLC/Persons.py b/PLC/Persons.py index d5ee82f..bcfd565 100644 --- a/PLC/Persons.py +++ b/PLC/Persons.py @@ -84,7 +84,7 @@ class Person(Row): if not email: raise invalid_email - email_re = re.compile('[a-zA-Z0-9._%+-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+') + email_re = re.compile('[a-zA-Z0-9._%+-]+@[a-zA-Z0-9._\-]+\.[a-zA-Z]+') if not email_re.match(email): raise invalid_email