Fix email regexp

This commit is contained in:
Johann Queuniet 2019-03-20 15:57:45 +01:00
parent 245bafb01c
commit 50c6259035
No known key found for this signature in database
GPG Key ID: 0241F8B1489EB3D3
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ class Attributes:
raise MissingUserKey()
def _is_email(self, email):
pattern = r'[\.\w]{1,}[@]\w+[.]\w+'
pattern = r'[\+\.\w]+@[-\.\w]+\.\w+'
if re.match(pattern, email):
return True
else: