diff options
Diffstat (limited to 'node_modules/locutus/php/strings/ltrim.js.map')
-rw-r--r-- | node_modules/locutus/php/strings/ltrim.js.map | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/node_modules/locutus/php/strings/ltrim.js.map b/node_modules/locutus/php/strings/ltrim.js.map new file mode 100644 index 0000000..ad7f2f5 --- /dev/null +++ b/node_modules/locutus/php/strings/ltrim.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/php/strings/ltrim.js"],"names":["module","exports","ltrim","str","charlist","replace","re","RegExp"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,KAAT,CAAgBC,GAAhB,EAAqBC,QAArB,EAA+B;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEAA,aAAW,CAACA,QAAD,GAAY,UAAZ,GAA2B,CAACA,WAAW,EAAZ,EACnCC,OADmC,CAC3B,sBAD2B,EACH,IADG,CAAtC;;AAGA,MAAIC,KAAK,IAAIC,MAAJ,CAAW,OAAOH,QAAP,GAAkB,IAA7B,EAAmC,GAAnC,CAAT;;AAEA,SAAO,CAACD,MAAM,EAAP,EACJE,OADI,CACIC,EADJ,EACQ,EADR,CAAP;AAED,CAhBD","file":"ltrim.js","sourcesContent":["module.exports = function ltrim (str, charlist) {\n // discuss at: http://locutus.io/php/ltrim/\n // original by: Kevin van Zonneveld (http://kvz.io)\n // input by: Erkekjetter\n // improved by: Kevin van Zonneveld (http://kvz.io)\n // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)\n // example 1: ltrim(' Kevin van Zonneveld ')\n // returns 1: 'Kevin van Zonneveld '\n\n charlist = !charlist ? ' \\\\s\\u00A0' : (charlist + '')\n .replace(/([[\\]().?/*{}+$^:])/g, '$1')\n\n var re = new RegExp('^[' + charlist + ']+', 'g')\n\n return (str + '')\n .replace(re, '')\n}\n"]}
\ No newline at end of file |