Skip to content

Commit ff1d677

Browse files
committed
Correctly convert prefixed prop keys
1 parent da8c3b7 commit ff1d677

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function valueOf(value) {
6767
}
6868
}
6969

70-
var CAMEL_CASE_TO_DASH_CASE = /([a-z])([A-Z])/g;
70+
var CAMEL_CASE_TO_DASH_CASE = /([a-z]|^)([A-Z])/g;
7171

7272
function propValueOf(prop) {
7373
return prop.replace(CAMEL_CASE_TO_DASH_CASE, '$1-$2').toLowerCase();

0 commit comments

Comments
 (0)