mirror of
https://github.com/kakwa/ldapcherry
synced 2024-12-22 04:40:03 +01:00
Fix email regexp
This commit is contained in:
parent
245bafb01c
commit
50c6259035
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user