Commit 9aada461 authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Fix check of mail

parent 2360f9dd
......@@ -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 == "":
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment