Commit 607bd513d9b9a8c0a577093321d4db67405151f2
1 parent
7babc28f
Exists in
master
and in
79 other branches
Change email regex of javascript to noosfero regex
Signed-off-by: Gabriela Navarro <navarro1703@gmail.com> Signed-off-by: Luciano Prestes <lucianopcbr@gmail.com>
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
public/mpog-user-validations.js
... | ... | @@ -220,7 +220,7 @@ |
220 | 220 | return false; |
221 | 221 | } |
222 | 222 | |
223 | - var correct_format_regex = new RegExp(/^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$/); | |
223 | + var correct_format_regex = new RegExp(/\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z/i); | |
224 | 224 | |
225 | 225 | return !correct_format_regex.test(value); |
226 | 226 | } | ... | ... |