Skip to content

Commit 9f18cbe

Browse files
authored
Handle underscore events
1 parent a1f146d commit 9f18cbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dist/lib/String.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
value: true
1818
});
1919
var camelize = exports.camelize = function camelize(str) {
20-
return str.split(' ').map(function (word) {
20+
return str.split('_').map(function (word) {
2121
return word.charAt(0).toUpperCase() + word.slice(1);
2222
}).join('');
2323
};

0 commit comments

Comments
 (0)