Skip to content

Instantly share code, notes, and snippets.

@nikoloza
Last active March 15, 2016 03:38
Show Gist options
  • Save nikoloza/da926676fee81bea4533 to your computer and use it in GitHub Desktop.
Save nikoloza/da926676fee81bea4533 to your computer and use it in GitHub Desktop.
ROT13 variation for Georgian Alphabet.
String.prototype.rot17 = function() {
return this.replace(/[ა-ჱ]/g, function(c) {
c = c.charCodeAt() + 17;
return String.fromCharCode(c <= 4337 ? c : c - 34);
});
};
@IrakliJani
Copy link

@nikoloza
Copy link
Author

@nodar magashic gamodgeba :))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment