Updated password regex

php
Aadhavan Srinivasan 2 years ago
parent e36a2cbd77
commit b0400e59a0

@ -31,7 +31,7 @@ if (window.location.pathname === '/signup.html') {
} }
let emailRX = new RegExp("^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z]+)+$"); let emailRX = new RegExp("^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z]+)+$");
let domainError = document.getElementById("domain"); let domainError = document.getElementById("domain");
let domainRX = new RegExp("^[a-zA-Z0-9!@#$%^&*]*$"); let domainRX = new RegExp("^[a-zA-Z0-9!@#$%^&*_]*$");
let emailError = document.getElementById("email-error"); let emailError = document.getElementById("email-error");
let capsRX = new RegExp(".*[A-Z]+"); let capsRX = new RegExp(".*[A-Z]+");
let capsError = document.getElementById("capital"); let capsError = document.getElementById("capital");
@ -39,7 +39,7 @@ let lowRX = new RegExp(".*[a-z]+");
let lowError = document.getElementById("letter"); let lowError = document.getElementById("letter");
let numRX = new RegExp(".*[0-9]+"); let numRX = new RegExp(".*[0-9]+");
let numError = document.getElementById("number"); let numError = document.getElementById("number");
let symbolRX = new RegExp(".*[!@#$%^&*]+"); let symbolRX = new RegExp(".*[!@#$%^&*_]+");
let symbolError = document.getElementById("symbol"); let symbolError = document.getElementById("symbol");
let MIN_LENGTH = 10; let MIN_LENGTH = 10;
let lenError = document.getElementById("length"); let lenError = document.getElementById("length");

Loading…
Cancel
Save