On passe le TLD pour la regexp mail à 20
* .cancerresearch fait déjà 14
This commit is contained in:
parent
d20fa54614
commit
fa7387420a
1 changed files with 1 additions and 1 deletions
|
@ -766,7 +766,7 @@ class mail(rightProtectedAttr):
|
||||||
raise ValueError("Le mail %s est déjà pris." % (str(self)))
|
raise ValueError("Le mail %s est déjà pris." % (str(self)))
|
||||||
|
|
||||||
def parse_value(self, mail):
|
def parse_value(self, mail):
|
||||||
if not re.match(u'^[-_.0-9A-Za-z]+@([A-Za-z0-9]{1}[A-Za-z0-9-_]+[.])+[a-z]{2,6}$', mail):
|
if not re.match(u'^[-_.0-9A-Za-z]+@([A-Za-z0-9]{1}[A-Za-z0-9-_]+[.])+[a-z]{2,20}$', mail):
|
||||||
raise ValueError("%s invalide %r" % (self.legend, mail))
|
raise ValueError("%s invalide %r" % (self.legend, mail))
|
||||||
self.value = mail
|
self.value = mail
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue