From 824a2d9f587ca017fc71b84d835e72f54f9c87c4 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 7 Nov 2018 18:02:36 +0100 Subject: Began rewrite --- node_modules/locutus/php/strings/rtrim.js.map | 1 + 1 file changed, 1 insertion(+) create mode 100644 node_modules/locutus/php/strings/rtrim.js.map (limited to 'node_modules/locutus/php/strings/rtrim.js.map') diff --git a/node_modules/locutus/php/strings/rtrim.js.map b/node_modules/locutus/php/strings/rtrim.js.map new file mode 100644 index 0000000..7676ced --- /dev/null +++ b/node_modules/locutus/php/strings/rtrim.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/php/strings/rtrim.js"],"names":["module","exports","rtrim","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;AACA;AACA;;AAEAA,aAAW,CAACA,QAAD,GAAY,UAAZ,GAA2B,CAACA,WAAW,EAAZ,EACnCC,OADmC,CAC3B,sBAD2B,EACH,MADG,CAAtC;;AAGA,MAAIC,KAAK,IAAIC,MAAJ,CAAW,MAAMH,QAAN,GAAiB,KAA5B,EAAmC,GAAnC,CAAT;;AAEA,SAAO,CAACD,MAAM,EAAP,EAAWE,OAAX,CAAmBC,EAAnB,EAAuB,EAAvB,CAAP;AACD,CAjBD","file":"rtrim.js","sourcesContent":["module.exports = function rtrim (str, charlist) {\n // discuss at: http://locutus.io/php/rtrim/\n // original by: Kevin van Zonneveld (http://kvz.io)\n // input by: Erkekjetter\n // input by: rem\n // improved 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 // example 1: rtrim(' 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 + '').replace(re, '')\n}\n"]} \ No newline at end of file -- cgit v1.2.3