Skip to content

Commit 7178812

Browse files
authored
Fix Problem wifth camelcase _
i have a problen listen onZoomChanged, i saw this function cant camelize when i have _ is only " ", i fix to solve the problem. [fullstackreact#345](fullstackreact#345)
1 parent c70a04f commit 7178812

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/String.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const camelize = function(str) {
2-
return str.split(' ').map(function(word) {
2+
return str.replace('_',' ').split(' ').map(function(word) {
33
return word.charAt(0).toUpperCase() + word.slice(1);
44
}).join('');
55
}

0 commit comments

Comments
 (0)