Comparing version 3.0.7 to 3.0.8
{ | ||
"name": "ntils", | ||
"version": "3.0.7", | ||
"version": "3.0.8", | ||
"description": "一个 Node & Browser 工具函数集", | ||
@@ -5,0 +5,0 @@ "main": "./lib/ntils.js", |
@@ -667,4 +667,6 @@ | ||
if (str) { | ||
str = str.replace(/\-[a-z0-9]/g, $1 => ($1.slice(1).toUpperCase())); | ||
str = str.replace(/^[a-z]/i, $1 => { | ||
str = str.replace(/\-[a-z0-9]/g, function ($1) { | ||
return $1.slice(1).toUpperCase() | ||
}); | ||
str = str.replace(/^[a-z]/i, function ($1) { | ||
return mode ? $1.toUpperCase() : $1.toLowerCase(); | ||
@@ -671,0 +673,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
141667
1500