Commit 8f20e5fa66f803f6d9890dba4e979752f5a3d16e
1 parent
44606433
Exists in
master
and in
5 other branches
Fix email validation regex.
Signed-off-by: Gabriela Navarro <navarro1703@gmail.com> Signed-off-by: Luciano Prestes <lucianopcbr@gmail.com> Signed-off-by: Parley Martins <parley@outlook.com>
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
public/mpog-user-validations.js
@@ -220,7 +220,7 @@ | @@ -220,7 +220,7 @@ | ||
220 | return false; | 220 | return false; |
221 | } | 221 | } |
222 | 222 | ||
223 | - var correct_format_regex = new RegExp(/\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z/i); | 223 | + var correct_format_regex = new RegExp(/^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/); |
224 | 224 | ||
225 | return !correct_format_regex.test(value); | 225 | return !correct_format_regex.test(value); |
226 | } | 226 | } |