Skip to content

Commit

Permalink
update regex for new TLD's email
Browse files Browse the repository at this point in the history
  • Loading branch information
vipin-shrivastava committed Sep 8, 2021
1 parent 9b2aa94 commit 96457c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/scripts/wizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@
validateForm: _.debounce(function(event) {
let errorFlag = false;
let nameRegex = /^[A-Za-z][A-Za-z]*[\sA-Za-z]*$/;
let emailRegex = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
let emailRegex = /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
let passwordRegix = /^(?=(.*[a-zA-Z].*){2,})(?=.*\d.*)(?=.*\W.*)[a-zA-Z0-9\S]{8,}$/;

let user = {
Expand Down

0 comments on commit 96457c3

Please sign in to comment.