Fixes email validation regexp too restrictive

Fixes #4824
This commit is contained in:
Simone Mainardi 2020-12-11 23:13:10 +01:00
parent 044b952c7d
commit 1b950cd93b
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -43,7 +43,7 @@ const REGEXES = {
macAddress: "^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$",
username: "^(?=[a-zA-Z0-9._]{3,20}$)(?!.*[_.]{2})[^_.].*[^_.]$",
singleword: "^(?=[a-zA-Z0-9._\-]{3,20}$)(?!.*[_.\-]{2})[^_.\-].*[^_.\-]$",
email: "[A-Za-z0-9._%+-]{2,}@[a-zA-Z\-]{1,}([.]{1}[a-zA-Z]{2,}|[.]{1}[a-zA-Z]{2,}[.]{1}[a-zA-Z]{2,})",
email: "^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*)$",
https: "^https?://.+$",
token: "^[0-9a-f]{32}"
};