Created
September 27, 2018 17:13
-
-
Save jpginc/c13dae9bc26b5a9b7441cd924082edc3 to your computer and use it in GitHub Desktop.
checking regexs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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