From: Anil-Kumar Vengalil Date: Mon, 14 Dec 2009 08:53:38 +0000 (+0000) Subject: nightly was failing with invalid email address, as the host part of e-mail address... X-Git-Tag: PLCAPI-4.3-31~5 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=f6d8e5f98598313ace6aee6420521acfcb3bd418 nightly was failing with invalid email address, as the host part of e-mail address did not allow hyphen to be part of it --- diff --git a/PLC/Persons.py b/PLC/Persons.py index 8aa638e..d5ee82f 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