diff options
Diffstat (limited to 'node_modules/locutus/php/strings/chunk_split.js.map')
-rw-r--r-- | node_modules/locutus/php/strings/chunk_split.js.map | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/node_modules/locutus/php/strings/chunk_split.js.map b/node_modules/locutus/php/strings/chunk_split.js.map deleted file mode 100644 index 401e1a6..0000000 --- a/node_modules/locutus/php/strings/chunk_split.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/php/strings/chunk_split.js"],"names":["module","exports","chunk_split","body","chunklen","end","parseInt","match","RegExp","join"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,WAAT,CAAsBC,IAAtB,EAA4BC,QAA5B,EAAsCC,GAAtC,EAA2C;AAAE;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEAD,aAAWE,SAASF,QAAT,EAAmB,EAAnB,KAA0B,EAArC;AACAC,QAAMA,OAAO,MAAb;;AAEA,MAAID,WAAW,CAAf,EAAkB;AAChB,WAAO,KAAP;AACD;;AAED,SAAOD,KAAKI,KAAL,CAAW,IAAIC,MAAJ,CAAW,SAASJ,QAAT,GAAoB,GAA/B,EAAoC,GAApC,CAAX,EACJK,IADI,CACCJ,GADD,CAAP;AAED,CApBD","file":"chunk_split.js","sourcesContent":["module.exports = function chunk_split (body, chunklen, end) { // eslint-disable-line camelcase\n // discuss at: http://locutus.io/php/chunk_split/\n // original by: Paulo Freitas\n // input by: Brett Zamir (http://brett-zamir.me)\n // bugfixed by: Kevin van Zonneveld (http://kvz.io)\n // improved by: Theriault (https://github.com/Theriault)\n // example 1: chunk_split('Hello world!', 1, '*')\n // returns 1: 'H*e*l*l*o* *w*o*r*l*d*!*'\n // example 2: chunk_split('Hello world!', 10, '*')\n // returns 2: 'Hello worl*d!*'\n\n chunklen = parseInt(chunklen, 10) || 76\n end = end || '\\r\\n'\n\n if (chunklen < 1) {\n return false\n }\n\n return body.match(new RegExp('.{0,' + chunklen + '}', 'g'))\n .join(end)\n}\n"]}
\ No newline at end of file |