summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/strings/stripslashes.js.map
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/locutus/php/strings/stripslashes.js.map')
-rw-r--r--node_modules/locutus/php/strings/stripslashes.js.map1
1 files changed, 1 insertions, 0 deletions
diff --git a/node_modules/locutus/php/strings/stripslashes.js.map b/node_modules/locutus/php/strings/stripslashes.js.map
new file mode 100644
index 0000000..baaf08b
--- /dev/null
+++ b/node_modules/locutus/php/strings/stripslashes.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["../../../src/php/strings/stripslashes.js"],"names":["module","exports","stripslashes","str","replace","s","n1"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,YAAT,CAAuBC,GAAvB,EAA4B;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAO,CAACA,MAAM,EAAP,EACJC,OADI,CACI,SADJ,EACe,UAAUC,CAAV,EAAaC,EAAb,EAAiB;AACnC,YAAQA,EAAR;AACE,WAAK,IAAL;AACE,eAAO,IAAP;AACF,WAAK,GAAL;AACE,eAAO,IAAP;AACF,WAAK,EAAL;AACE,eAAO,EAAP;AACF;AACE,eAAOA,EAAP;AARJ;AAUD,GAZI,CAAP;AAaD,CA9BD","file":"stripslashes.js","sourcesContent":["module.exports = function stripslashes (str) {\n // discuss at: http://locutus.io/php/stripslashes/\n // original by: Kevin van Zonneveld (http://kvz.io)\n // improved by: Ates Goral (http://magnetiq.com)\n // improved by: marrtins\n // improved by: rezna\n // fixed by: Mick@el\n // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)\n // bugfixed by: Brett Zamir (http://brett-zamir.me)\n // input by: Rick Waldron\n // input by: Brant Messenger (http://www.brantmessenger.com/)\n // reimplemented by: Brett Zamir (http://brett-zamir.me)\n // example 1: stripslashes('Kevin\\'s code')\n // returns 1: \"Kevin's code\"\n // example 2: stripslashes('Kevin\\\\\\'s code')\n // returns 2: \"Kevin\\'s code\"\n\n return (str + '')\n .replace(/\\\\(.?)/g, function (s, n1) {\n switch (n1) {\n case '\\\\':\n return '\\\\'\n case '0':\n return '\\u0000'\n case '':\n return ''\n default:\n return n1\n }\n })\n}\n"]} \ No newline at end of file