From 50c6259035113d6f91a9fe5f7fe0664f3aa095a4 Mon Sep 17 00:00:00 2001 From: Johann Queuniet Date: Wed, 20 Mar 2019 15:57:45 +0100 Subject: [PATCH] Fix email regexp --- ldapcherry/attributes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldapcherry/attributes.py b/ldapcherry/attributes.py index 5ddea82..a544569 100644 --- a/ldapcherry/attributes.py +++ b/ldapcherry/attributes.py @@ -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: