diff options
author | Marvin Borner | 2018-11-07 22:10:16 +0100 |
---|---|---|
committer | Marvin Borner | 2018-11-07 22:10:17 +0100 |
commit | 954583f3d56fbfb60321725f13ad092e536e3737 (patch) | |
tree | a0505a763797582c61fd8c2f90b422456d8874c9 /node_modules/locutus/php/strings/substr_count.js.map | |
parent | 1c355e6e956a4e507ed5436d0c814ba9c3a1deb2 (diff) |
Removed node_modules
Diffstat (limited to 'node_modules/locutus/php/strings/substr_count.js.map')
-rw-r--r-- | node_modules/locutus/php/strings/substr_count.js.map | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/node_modules/locutus/php/strings/substr_count.js.map b/node_modules/locutus/php/strings/substr_count.js.map deleted file mode 100644 index 2c0a4a7..0000000 --- a/node_modules/locutus/php/strings/substr_count.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/php/strings/substr_count.js"],"names":["module","exports","substr_count","haystack","needle","offset","length","cnt","isNaN","indexOf"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,YAAT,CAAuBC,QAAvB,EAAiCC,MAAjC,EAAyCC,MAAzC,EAAiDC,MAAjD,EAAyD;AAAE;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAIC,MAAM,CAAV;;AAEAJ,cAAY,EAAZ;AACAC,YAAU,EAAV;AACA,MAAII,MAAMH,MAAN,CAAJ,EAAmB;AACjBA,aAAS,CAAT;AACD;AACD,MAAIG,MAAMF,MAAN,CAAJ,EAAmB;AACjBA,aAAS,CAAT;AACD;AACD,MAAIF,OAAOE,MAAP,KAAkB,CAAtB,EAAyB;AACvB,WAAO,KAAP;AACD;AACDD;;AAEA,SAAO,CAACA,SAASF,SAASM,OAAT,CAAiBL,MAAjB,EAAyBC,SAAS,CAAlC,CAAV,MAAoD,CAAC,CAA5D,EAA+D;AAC7D,QAAIC,SAAS,CAAT,IAAeD,SAASD,OAAOE,MAAjB,GAA2BA,MAA7C,EAAqD;AACnD,aAAO,KAAP;AACD;AACDC;AACD;;AAED,SAAOA,GAAP;AACD,CApCD","file":"substr_count.js","sourcesContent":["module.exports = function substr_count (haystack, needle, offset, length) { // eslint-disable-line camelcase\n // discuss at: http://locutus.io/php/substr_count/\n // original by: Kevin van Zonneveld (http://kvz.io)\n // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)\n // improved by: Brett Zamir (http://brett-zamir.me)\n // improved by: Thomas\n // example 1: substr_count('Kevin van Zonneveld', 'e')\n // returns 1: 3\n // example 2: substr_count('Kevin van Zonneveld', 'K', 1)\n // returns 2: 0\n // example 3: substr_count('Kevin van Zonneveld', 'Z', 0, 10)\n // returns 3: false\n\n var cnt = 0\n\n haystack += ''\n needle += ''\n if (isNaN(offset)) {\n offset = 0\n }\n if (isNaN(length)) {\n length = 0\n }\n if (needle.length === 0) {\n return false\n }\n offset--\n\n while ((offset = haystack.indexOf(needle, offset + 1)) !== -1) {\n if (length > 0 && (offset + needle.length) > length) {\n return false\n }\n cnt++\n }\n\n return cnt\n}\n"]}
\ No newline at end of file |