mirror of
https://github.com/kakwa/ldapcherry
synced 2025-07-03 20:07:42 +02:00
Fix email regexp
This commit is contained in:
parent
245bafb01c
commit
50c6259035
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ class Attributes:
|
||||||
raise MissingUserKey()
|
raise MissingUserKey()
|
||||||
|
|
||||||
def _is_email(self, email):
|
def _is_email(self, email):
|
||||||
pattern = r'[\.\w]{1,}[@]\w+[.]\w+'
|
pattern = r'[\+\.\w]+@[-\.\w]+\.\w+'
|
||||||
if re.match(pattern, email):
|
if re.match(pattern, email):
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue