diff options
Diffstat (limited to 'node_modules/locutus/php/strings/strstr.js.map')
-rw-r--r-- | node_modules/locutus/php/strings/strstr.js.map | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/node_modules/locutus/php/strings/strstr.js.map b/node_modules/locutus/php/strings/strstr.js.map deleted file mode 100644 index 007d714..0000000 --- a/node_modules/locutus/php/strings/strstr.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/php/strings/strstr.js"],"names":["module","exports","strstr","haystack","needle","bool","pos","indexOf","substr","slice"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,MAAT,CAAiBC,QAAjB,EAA2BC,MAA3B,EAAmCC,IAAnC,EAAyC;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAIC,MAAM,CAAV;;AAEAH,cAAY,EAAZ;AACAG,QAAMH,SAASI,OAAT,CAAiBH,MAAjB,CAAN;AACA,MAAIE,QAAQ,CAAC,CAAb,EAAgB;AACd,WAAO,KAAP;AACD,GAFD,MAEO;AACL,QAAID,IAAJ,EAAU;AACR,aAAOF,SAASK,MAAT,CAAgB,CAAhB,EAAmBF,GAAnB,CAAP;AACD,KAFD,MAEO;AACL,aAAOH,SAASM,KAAT,CAAeH,GAAf,CAAP;AACD;AACF;AACF,CA3BD","file":"strstr.js","sourcesContent":["module.exports = function strstr (haystack, needle, bool) {\n // discuss at: http://locutus.io/php/strstr/\n // original by: Kevin van Zonneveld (http://kvz.io)\n // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)\n // improved by: Kevin van Zonneveld (http://kvz.io)\n // example 1: strstr('Kevin van Zonneveld', 'van')\n // returns 1: 'van Zonneveld'\n // example 2: strstr('Kevin van Zonneveld', 'van', true)\n // returns 2: 'Kevin '\n // example 3: strstr('name@example.com', '@')\n // returns 3: '@example.com'\n // example 4: strstr('name@example.com', '@', true)\n // returns 4: 'name'\n\n var pos = 0\n\n haystack += ''\n pos = haystack.indexOf(needle)\n if (pos === -1) {\n return false\n } else {\n if (bool) {\n return haystack.substr(0, pos)\n } else {\n return haystack.slice(pos)\n }\n }\n}\n"]}
\ No newline at end of file |