summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/strings/strripos.js.map
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/locutus/php/strings/strripos.js.map')
-rw-r--r--node_modules/locutus/php/strings/strripos.js.map1
1 files changed, 1 insertions, 0 deletions
diff --git a/node_modules/locutus/php/strings/strripos.js.map b/node_modules/locutus/php/strings/strripos.js.map
new file mode 100644
index 0000000..323ab73
--- /dev/null
+++ b/node_modules/locutus/php/strings/strripos.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["../../../src/php/strings/strripos.js"],"names":["module","exports","strripos","haystack","needle","offset","toLowerCase","i","slice","lastIndexOf"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,QAAT,CAAmBC,QAAnB,EAA6BC,MAA7B,EAAqCC,MAArC,EAA6C;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;;AAEAF,aAAW,CAACA,WAAW,EAAZ,EACRG,WADQ,EAAX;AAEAF,WAAS,CAACA,SAAS,EAAV,EACNE,WADM,EAAT;;AAGA,MAAIC,IAAI,CAAC,CAAT;AACA,MAAIF,MAAJ,EAAY;AACVE,QAAI,CAACJ,WAAW,EAAZ,EACDK,KADC,CACKH,MADL,EAEDI,WAFC,CAEWL,MAFX,CAAJ,CADU,CAGa;AACvB;AACA,QAAIG,MAAM,CAAC,CAAX,EAAc;AACZA,WAAKF,MAAL;AACD;AACF,GARD,MAQO;AACLE,QAAI,CAACJ,WAAW,EAAZ,EACDM,WADC,CACWL,MADX,CAAJ;AAED;AACD,SAAOG,KAAK,CAAL,GAASA,CAAT,GAAa,KAApB;AACD,CA5BD","file":"strripos.js","sourcesContent":["module.exports = function strripos (haystack, needle, offset) {\n // discuss at: http://locutus.io/php/strripos/\n // original by: Kevin van Zonneveld (http://kvz.io)\n // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)\n // bugfixed by: Brett Zamir (http://brett-zamir.me)\n // input by: saulius\n // example 1: strripos('Kevin van Zonneveld', 'E')\n // returns 1: 16\n\n haystack = (haystack + '')\n .toLowerCase()\n needle = (needle + '')\n .toLowerCase()\n\n var i = -1\n if (offset) {\n i = (haystack + '')\n .slice(offset)\n .lastIndexOf(needle) // strrpos' offset indicates starting point of range till end,\n // while lastIndexOf's optional 2nd argument indicates ending point of range from the beginning\n if (i !== -1) {\n i += offset\n }\n } else {\n i = (haystack + '')\n .lastIndexOf(needle)\n }\n return i >= 0 ? i : false\n}\n"]} \ No newline at end of file