Skip to content
Snippets Groups Projects
Commit 9aada461 authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Fix check of mail

parent 2360f9dd
No related branches found
No related tags found
No related merge requests found
......@@ -111,7 +111,7 @@ def launch_analysis():
if email == "":
errors.append("Email not given")
form_pass = False
elif not re.match(r"^[\w\-]+@[\w\-]{2,}\.[a-z]{2,4}", email):
elif not re.match(r"^[\w.\-]+@[\w\-.]{2,}\.[a-z]{2,4}$", email):
errors.append("Email is invalid")
form_pass = False
if file_target == "":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment