This file contains hidden or 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
//here's a cleaner version. same functionality | |
//just easier to change since the regex is at the beginning of the code. | |
//help from /u/BBQCalculator | |
//http://www.regexper.com/ | |
//http://regexpal.com/ | |
//modfied from a lot of others | |
//moved regex to top for simple pasting if it needs to change | |
var REGEX = /^((up|down|left|right|a|b|start|select|anarchy|democracy)\d*)+$/i; |
NewerOlder