You are viewing a single comment's thread. Return to all comments →
I went full Regex in JS with this solution:
if(n <= 3){ return 6 - n; } let count = 0; if(password.match(/\d/) === null){ count++; } if(password.match(/[A-Z]/) === null){ count++; } if(password.match(/[a-z]/) === null){ count++; } if(password.match(/\W/) === null){ count++; } return (count + n >= 6) ? count : 6 - n;
Seems like cookies are disabled on this browser, please enable them to open this website
Strong Password
You are viewing a single comment's thread. Return to all comments →
I went full Regex in JS with this solution: