Skip to content

Commit

Permalink
fix(validation): email validation for modern tlds #130
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed Jan 30, 2019
1 parent 47fde44 commit febcbdf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/views/install.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@
}
function validateEmail(email) {
var mailFormat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
var mailFormat = /^\w+([.-]\w+)*@\w+([.-]\w+)*(\.\w+)+$/;
return email.match(mailFormat);
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/pub_createTicket.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@
}
function validateEmail(email) {
var mailFormat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
var mailFormat = /^\w+([.-]\w+)*@\w+([.-]\w+)*(\.\w+)+$/;
return email.match(mailFormat);
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/pub_signup.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@
}
function validateEmail(email) {
var mailFormat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
var mailFormat = /^\w+([.-]\w+)*@\w+([.-]\w+)*(\.\w+)+$/;
return email.match(mailFormat);
}
Expand Down

0 comments on commit febcbdf

Please sign in to comment.