diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2024-03-14 17:01:52 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2024-03-14 17:01:52 +0800 |
| commit | 7f8f993637e698d63aeb2e08f053e0948d9f4d31 (patch) | |
| tree | 52d5e508a4ff2e4fa80dde457bc52e662a3887ab /node_modules/camelcase/index.js | |
| parent | 7210ae26624cc6c6ad6725040e388b31991b7907 (diff) | |
fixed minifier
Diffstat (limited to 'node_modules/camelcase/index.js')
| -rw-r--r-- | node_modules/camelcase/index.js | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/node_modules/camelcase/index.js b/node_modules/camelcase/index.js deleted file mode 100644 index b46e1009..00000000 --- a/node_modules/camelcase/index.js +++ /dev/null @@ -1,27 +0,0 @@ -'use strict'; -module.exports = function () { - var str = [].map.call(arguments, function (str) { - return str.trim(); - }).filter(function (str) { - return str.length; - }).join('-'); - - if (!str.length) { - return ''; - } - - if (str.length === 1 || !(/[_.\- ]+/).test(str) ) { - if (str[0] === str[0].toLowerCase() && str.slice(1) !== str.slice(1).toLowerCase()) { - return str; - } - - return str.toLowerCase(); - } - - return str - .replace(/^[_.\- ]+/, '') - .toLowerCase() - .replace(/[_.\- ]+(\w|$)/g, function (m, p1) { - return p1.toUpperCase(); - }); -}; |
