Skip to content

Commit

Permalink
[FIX] Email validation (#4730)
Browse files Browse the repository at this point in the history
Patches #4726, not in a great way, I'd rather use a well-defined regex but I could not get that to work and this is blocking someone, so this will do not for now.
  • Loading branch information
Felienne authored Nov 9, 2023
1 parent 4c202a1 commit 74c8c57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def version():


def valid_email(s):
return bool(re.match(r'^(([a-zA-Z0-9_+\.\-]+)@([\da-zA-Z\.\-]+)\.([a-zA-Z\.]{2,6})\s*)$', s))
return bool(re.match(r'^(([a-zA-Z0-9_+\.\-]+)@([\da-zA-Z\.\-]+)\.([a-zA-Z\.]{2,10})\s*)$', s))


@contextlib.contextmanager
Expand Down

0 comments on commit 74c8c57

Please sign in to comment.