From c91c89f3dfe657577c9d0a2408af27987358d2e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Thu, 10 Sep 2015 14:58:53 +0200 Subject: [PATCH] =?UTF-8?q?Donc=20on=20peste=20contre=20les=20sites=20qui?= =?UTF-8?q?=20interdisent=20les=20+=20dans=20les=20emails=C2=A0=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- attributs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attributs.py b/attributs.py index 7404e82..beb7020 100644 --- a/attributs.py +++ b/attributs.py @@ -766,7 +766,7 @@ class mail(rightProtectedAttr): raise ValueError("Le mail %s est déjà pris." % (str(self))) 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,20}$', 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)) self.value = mail