Merge branch 'dev' into next

This commit is contained in:
chenjiahan
2022-03-13 16:27:20 +08:00
32 changed files with 176 additions and 33 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ const isMobile = /ios|iphone|ipod|ipad|android/.test(ua);
export function decamelize(str, sep = '-') {
return str
.replace(/([a-z\d])([A-Z])/g, '$1' + sep + '$2')
.replace(/([A-Z]+)([A-Z][a-z\d]+)/g, '$1' + sep + '$2')
.replace(/([A-Z])([A-Z][a-z\d]+)/g, '$1' + sep + '$2')
.toLowerCase();
}