Skip to content

Instantly share code, notes, and snippets.

@jpginc
Created September 27, 2018 17:13
Show Gist options
  • Save jpginc/c13dae9bc26b5a9b7441cd924082edc3 to your computer and use it in GitHub Desktop.
Save jpginc/c13dae9bc26b5a9b7441cd924082edc3 to your computer and use it in GitHub Desktop.
checking regexs
function checkPassword(mao)
{
var miau = [
...SNIP...
];
if (mao.length != 10)
{
alert("Access denied!");
return;
}
for (var mew=0;mew<miau.length;mew++)
{
if (!miau[mew].test(mao))
{
console.log("passed check " + mew);
return;
}
}
open(mao + ".php")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment