We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc37f7d commit 14ef846Copy full SHA for 14ef846
index.js
@@ -1,5 +1,5 @@
1
/* eslint no-console:0 */
2
-function camelCase(name) {
+function pascalCase(name) {
3
return name.charAt(0).toUpperCase() + name.slice(1).replace(/-(\w)/g, (m, n) => n.toUpperCase());
4
}
5
@@ -17,7 +17,7 @@ req.keys().forEach(mod => {
17
// message & notification should not be capitalized
18
exports[match[1]] = v;
19
} else {
20
- exports[camelCase(match[1])] = v;
+ exports[pascalCase(match[1])] = v;
21
22
23
});
0 commit comments