summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/strings/str_rot13.js
diff options
context:
space:
mode:
authorMarvin Borner2018-11-07 22:10:16 +0100
committerMarvin Borner2018-11-07 22:10:17 +0100
commit954583f3d56fbfb60321725f13ad092e536e3737 (patch)
treea0505a763797582c61fd8c2f90b422456d8874c9 /node_modules/locutus/php/strings/str_rot13.js
parent1c355e6e956a4e507ed5436d0c814ba9c3a1deb2 (diff)
Removed node_modules
Diffstat (limited to 'node_modules/locutus/php/strings/str_rot13.js')
-rw-r--r--node_modules/locutus/php/strings/str_rot13.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/node_modules/locutus/php/strings/str_rot13.js b/node_modules/locutus/php/strings/str_rot13.js
deleted file mode 100644
index 3c378c9..0000000
--- a/node_modules/locutus/php/strings/str_rot13.js
+++ /dev/null
@@ -1,21 +0,0 @@
-'use strict';
-
-module.exports = function str_rot13(str) {
- // eslint-disable-line camelcase
- // discuss at: http://locutus.io/php/str_rot13/
- // original by: Jonas Raoni Soares Silva (http://www.jsfromhell.com)
- // improved by: Ates Goral (http://magnetiq.com)
- // improved by: RafaƂ Kukawski (http://blog.kukawski.pl)
- // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)
- // example 1: str_rot13('Kevin van Zonneveld')
- // returns 1: 'Xriva ina Mbaariryq'
- // example 2: str_rot13('Xriva ina Mbaariryq')
- // returns 2: 'Kevin van Zonneveld'
- // example 3: str_rot13(33)
- // returns 3: '33'
-
- return (str + '').replace(/[a-z]/gi, function (s) {
- return String.fromCharCode(s.charCodeAt(0) + (s.toLowerCase() < 'n' ? 13 : -13));
- });
-};
-//# sourceMappingURL=str_rot13.js.map \ No newline at end of file