diff options
Diffstat (limited to 'node_modules/locutus/php/strings/ltrim.js')
-rw-r--r-- | node_modules/locutus/php/strings/ltrim.js | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/node_modules/locutus/php/strings/ltrim.js b/node_modules/locutus/php/strings/ltrim.js deleted file mode 100644 index f47b69c..0000000 --- a/node_modules/locutus/php/strings/ltrim.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict'; - -module.exports = function ltrim(str, charlist) { - // discuss at: http://locutus.io/php/ltrim/ - // original by: Kevin van Zonneveld (http://kvz.io) - // input by: Erkekjetter - // improved by: Kevin van Zonneveld (http://kvz.io) - // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman) - // example 1: ltrim(' Kevin van Zonneveld ') - // returns 1: 'Kevin van Zonneveld ' - - charlist = !charlist ? ' \\s\xA0' : (charlist + '').replace(/([[\]().?/*{}+$^:])/g, '$1'); - - var re = new RegExp('^[' + charlist + ']+', 'g'); - - return (str + '').replace(re, ''); -}; -//# sourceMappingURL=ltrim.js.map
\ No newline at end of file |