Created
August 7, 2013 15:25
-
-
Save imsickofmaps/6175072 to your computer and use it in GitHub Desktop.
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
| self.check_valid_emis = function(emis){ | |
| // returns false if fails to find | |
| var numbers_only = new RegExp('^\\d+$'); | |
| if (numbers_only.test(emis)){ | |
| return im.config.array_emis.indexOf(parseInt(emis)) == -1; | |
| } else { | |
| return false; | |
| } | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment