【fix ESLint】StringUtil.js
This commit is contained in:
@@ -36,7 +36,7 @@ export const cutStrByFullLength = (str = '', maxLength) => {
|
||||
|
||||
// 下划线转换驼峰
|
||||
export function underLinetoHump (name) {
|
||||
return name.replace(/\_(\w)/g, function (all, letter) {
|
||||
return name.replace(/_(\w)/g, function (all, letter) {
|
||||
return letter.toUpperCase()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user