Created
January 19, 2016 14:15
-
-
Save aseredenko/4ed5d8c1c039b38f6ec0 to your computer and use it in GitHub Desktop.
validateInputSymbolsByRegExp
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 isRussian(input) { | |
var value = input.value; | |
var rep = /[\x00-\x7F]/; | |
if (rep.test(value)) { | |
value = value.split(rep).join(""); | |
input.value = value; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment