You are viewing a single comment's thread. Return to all comments →
what can be more concise than this piece of JS, don't mind the syntax highlighting
function minNumber(n, pass) { const c = [/[0-9]/, /[a-z]/, /[A-Z]/, /[!@#$%^&*()\-+"]/] .map(r => !r.test(pass)) .filter(Boolean).length return Math.max(c,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 →
what can be more concise than this piece of JS, don't mind the syntax highlighting