作者 若依
提交者 Gitee

!376 camelCase中应该转换下划线,而不是横杠

Merge pull request !376 from khejing/master
@@ -381,7 +381,7 @@ export function titleCase(str) { @@ -381,7 +381,7 @@ export function titleCase(str) {
381 381
382 // 下划转驼峰 382 // 下划转驼峰
383 export function camelCase(str) { 383 export function camelCase(str) {
384 - return str.replace(/-[a-z]/g, str1 => str1.substr(-1).toUpperCase()) 384 + return str.replace(/_[a-z]/g, str1 => str1.substr(-1).toUpperCase())
385 } 385 }
386 386
387 export function isNumberStr(str) { 387 export function isNumberStr(str) {