git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nightly was failing with invalid email address, as the host part of e-mail address...
[plcapi.git]
/
PLC
/
Persons.py
diff --git
a/PLC/Persons.py
b/PLC/Persons.py
index
8aa638e
..
d5ee82f
100644
(file)
--- 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