Skip to content

Commit 2b27a1c

Browse files
authored
Merge pull request #343 from andrewgouin/patch-2
Handle underscore events
2 parents 80cece4 + 9f18cbe commit 2b27a1c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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
};

src/lib/String.js

Lines changed: 1 addition & 1 deletion
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.split('_').map(function(word) {
33
return word.charAt(0).toUpperCase() + word.slice(1);
44
}).join('');
55
}

0 commit comments

Comments
 (0)