Created
May 20, 2015 14:12
-
-
Save ocus/02c8c2fbe64b3c0e2430 to your computer and use it in GitHub Desktop.
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 rovarspraketEnc(s) { | |
return s.replace(/[b-df-hj-np-tv-xz]/ig, function (m) { | |
return m + "o" + m.toLowerCase(); | |
}); | |
} | |
function rovarspraketDec(s) { | |
return s.replace(/([b-df-hj-np-tv-xz])o\1/ig, function (m, n) { | |
return n; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment