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/stripslashes.js | 33 ------------------------ 1 file changed, 33 deletions(-) delete mode 100644 node_modules/locutus/php/strings/stripslashes.js (limited to 'node_modules/locutus/php/strings/stripslashes.js') diff --git a/node_modules/locutus/php/strings/stripslashes.js b/node_modules/locutus/php/strings/stripslashes.js deleted file mode 100644 index ca88849..0000000 --- a/node_modules/locutus/php/strings/stripslashes.js +++ /dev/null @@ -1,33 +0,0 @@ -'use strict'; - -module.exports = function stripslashes(str) { - // discuss at: http://locutus.io/php/stripslashes/ - // original by: Kevin van Zonneveld (http://kvz.io) - // improved by: Ates Goral (http://magnetiq.com) - // improved by: marrtins - // improved by: rezna - // fixed by: Mick@el - // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman) - // bugfixed by: Brett Zamir (http://brett-zamir.me) - // input by: Rick Waldron - // input by: Brant Messenger (http://www.brantmessenger.com/) - // reimplemented by: Brett Zamir (http://brett-zamir.me) - // example 1: stripslashes('Kevin\'s code') - // returns 1: "Kevin's code" - // example 2: stripslashes('Kevin\\\'s code') - // returns 2: "Kevin\'s code" - - return (str + '').replace(/\\(.?)/g, function (s, n1) { - switch (n1) { - case '\\': - return '\\'; - case '0': - return '\0'; - case '': - return ''; - default: - return n1; - } - }); -}; -//# sourceMappingURL=stripslashes.js.map \ No newline at end of file -- cgit v1.2.3