fix: fix build:test error

This commit is contained in:
kailong321200875
2022-07-16 15:11:19 +08:00
parent 1b14680d73
commit 14530cf790
9 changed files with 45 additions and 37 deletions

View File

@@ -30,6 +30,7 @@ export const humpToUnderline = (str: string): string => {
* @returns 字符串驼峰
*/
export const underlineToHump = (str: string): string => {
if (!str) return ''
return str.replace(/\-(\w)/g, (_, letter: string) => {
return letter.toUpperCase()
})