From b0400e59a0a7223b0a1aa2d0da6d1f50322c6d40 Mon Sep 17 00:00:00 2001 From: Aadhavan Srinivasan Date: Sun, 25 Jun 2023 15:25:36 -0500 Subject: [PATCH] Updated password regex --- login.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/login.js b/login.js index 5543c51..d3a74cc 100644 --- a/login.js +++ b/login.js @@ -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 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 capsRX = new RegExp(".*[A-Z]+"); let capsError = document.getElementById("capital"); @@ -39,7 +39,7 @@ let lowRX = new RegExp(".*[a-z]+"); let lowError = document.getElementById("letter"); let numRX = new RegExp(".*[0-9]+"); let numError = document.getElementById("number"); -let symbolRX = new RegExp(".*[!@#$%^&*]+"); +let symbolRX = new RegExp(".*[!@#$%^&*_]+"); let symbolError = document.getElementById("symbol"); let MIN_LENGTH = 10; let lenError = document.getElementById("length"); @@ -165,4 +165,4 @@ if (window.location.pathname === '/signup.html') { check_password.classList.remove("focus:ring-red-400"); } }); -} \ No newline at end of file +}