summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/strings/quoted_printable_decode.js.map
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/locutus/php/strings/quoted_printable_decode.js.map')
-rw-r--r--node_modules/locutus/php/strings/quoted_printable_decode.js.map1
1 files changed, 0 insertions, 1 deletions
diff --git a/node_modules/locutus/php/strings/quoted_printable_decode.js.map b/node_modules/locutus/php/strings/quoted_printable_decode.js.map
deleted file mode 100644
index d52de41..0000000
--- a/node_modules/locutus/php/strings/quoted_printable_decode.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"sources":["../../../src/php/strings/quoted_printable_decode.js"],"names":["module","exports","quoted_printable_decode","str","RFC2045Decode1","RFC2045Decode2IN","RFC2045Decode2OUT","sMatch","sHex","String","fromCharCode","parseInt","replace"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,uBAAT,CAAkCC,GAAlC,EAAuC;AAAE;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAIC,iBAAiB,SAArB;;AAEA;AACA,MAAIC,mBAAmB,mBAAvB;AACA;;AAEA,MAAIC,oBAAoB,SAApBA,iBAAoB,CAAUC,MAAV,EAAkBC,IAAlB,EAAwB;AAC9C,WAAOC,OAAOC,YAAP,CAAoBC,SAASH,IAAT,EAAe,EAAf,CAApB,CAAP;AACD,GAFD;;AAIA,SAAOL,IAAIS,OAAJ,CAAYR,cAAZ,EAA4B,EAA5B,EACJQ,OADI,CACIP,gBADJ,EACsBC,iBADtB,CAAP;AAED,CA7BD","file":"quoted_printable_decode.js","sourcesContent":["module.exports = function quoted_printable_decode (str) { // eslint-disable-line camelcase\n // discuss at: http://locutus.io/php/quoted_printable_decode/\n // original by: Ole Vrijenhoek\n // bugfixed by: Brett Zamir (http://brett-zamir.me)\n // bugfixed by: Theriault (https://github.com/Theriault)\n // reimplemented by: Theriault (https://github.com/Theriault)\n // improved by: Brett Zamir (http://brett-zamir.me)\n // example 1: quoted_printable_decode('a=3Db=3Dc')\n // returns 1: 'a=b=c'\n // example 2: quoted_printable_decode('abc =20\\r\\n123 =20\\r\\n')\n // returns 2: 'abc \\r\\n123 \\r\\n'\n // example 3: quoted_printable_decode('012345678901234567890123456789012345678901234567890123456789012345678901234=\\r\\n56789')\n // returns 3: '01234567890123456789012345678901234567890123456789012345678901234567890123456789'\n // example 4: quoted_printable_decode(\"Lorem ipsum dolor sit amet=23, consectetur adipisicing elit\")\n // returns 4: 'Lorem ipsum dolor sit amet#, consectetur adipisicing elit'\n\n // Decodes all equal signs followed by two hex digits\n var RFC2045Decode1 = /=\\r\\n/gm\n\n // the RFC states against decoding lower case encodings, but following apparent PHP behavior\n var RFC2045Decode2IN = /=([0-9A-F]{2})/gim\n // RFC2045Decode2IN = /=([0-9A-F]{2})/gm,\n\n var RFC2045Decode2OUT = function (sMatch, sHex) {\n return String.fromCharCode(parseInt(sHex, 16))\n }\n\n return str.replace(RFC2045Decode1, '')\n .replace(RFC2045Decode2IN, RFC2045Decode2OUT)\n}\n"]} \ No newline at end of file