From f6d8e5f98598313ace6aee6420521acfcb3bd418 Mon Sep 17 00:00:00 2001 From: Anil-Kumar Vengalil Date: Mon, 14 Dec 2009 08:53:38 +0000 Subject: [PATCH] nightly was failing with invalid email address, as the host part of e-mail address did not allow hyphen to be part of it --- PLC/Persons.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.43.0