Created
February 8, 2014 16:07
-
-
Save girvydas/5d7109a292fb08fde2e4 to your computer and use it in GitHub Desktop.
LT to EN jQuery
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
var from = "ąčęėįšųūž"; | |
var to = "aceeisuuz"; | |
for (var i=0, l=from.length ; i<l ; i++) { | |
str = str.replace(new RegExp(from.charAt(i), 'g'), to.charAt(i)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment