From 954583f3d56fbfb60321725f13ad092e536e3737 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 7 Nov 2018 22:10:16 +0100 Subject: Removed node_modules --- node_modules/locutus/php/strings/strrchr.js | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 node_modules/locutus/php/strings/strrchr.js (limited to 'node_modules/locutus/php/strings/strrchr.js') diff --git a/node_modules/locutus/php/strings/strrchr.js b/node_modules/locutus/php/strings/strrchr.js deleted file mode 100644 index 1262865..0000000 --- a/node_modules/locutus/php/strings/strrchr.js +++ /dev/null @@ -1,24 +0,0 @@ -'use strict'; - -module.exports = function strrchr(haystack, needle) { - // discuss at: http://locutus.io/php/strrchr/ - // original by: Brett Zamir (http://brett-zamir.me) - // input by: Jason Wong (http://carrot.org/) - // bugfixed by: Brett Zamir (http://brett-zamir.me) - // example 1: strrchr("Line 1\nLine 2\nLine 3", 10).substr(1) - // returns 1: 'Line 3' - - var pos = 0; - - if (typeof needle !== 'string') { - needle = String.fromCharCode(parseInt(needle, 10)); - } - needle = needle.charAt(0); - pos = haystack.lastIndexOf(needle); - if (pos === -1) { - return false; - } - - return haystack.substr(pos); -}; -//# sourceMappingURL=strrchr.js.map \ No newline at end of file -- cgit v1.2.3