File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export function camelCase (str: string): string {
10
10
const isCamelCase = str !== str . toLowerCase ( ) && str !== str . toUpperCase ( )
11
11
12
12
if ( ! isCamelCase ) {
13
- str = str . toLocaleLowerCase ( )
13
+ str = str . toLowerCase ( )
14
14
}
15
15
16
16
if ( str . indexOf ( '-' ) === - 1 && str . indexOf ( '_' ) === - 1 ) {
@@ -23,7 +23,7 @@ export function camelCase (str: string): string {
23
23
let chr = str . charAt ( i )
24
24
if ( nextChrUpper ) {
25
25
nextChrUpper = false
26
- chr = chr . toLocaleUpperCase ( )
26
+ chr = chr . toUpperCase ( )
27
27
}
28
28
if ( i !== 0 && ( chr === '-' || chr === '_' ) ) {
29
29
nextChrUpper = true
@@ -36,7 +36,7 @@ export function camelCase (str: string): string {
36
36
}
37
37
38
38
export function decamelize ( str : string , joinString ?: string ) : string {
39
- const lowercase = str . toLocaleLowerCase ( )
39
+ const lowercase = str . toLowerCase ( )
40
40
joinString = joinString || '-'
41
41
let notCamelcase = ''
42
42
for ( let i = 0 ; i < str . length ; i ++ ) {
You can’t perform that action at this time.
0 commit comments