Skip to content

Commit 14ef846

Browse files
nnnnoelafc163
andauthored
change function name correctly in index.js (ant-design#26850)
* change function name correctly in index.js * Update index.js Co-authored-by: 偏右 <[email protected]>
1 parent cc37f7d commit 14ef846

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint no-console:0 */
2-
function camelCase(name) {
2+
function pascalCase(name) {
33
return name.charAt(0).toUpperCase() + name.slice(1).replace(/-(\w)/g, (m, n) => n.toUpperCase());
44
}
55

@@ -17,7 +17,7 @@ req.keys().forEach(mod => {
1717
// message & notification should not be capitalized
1818
exports[match[1]] = v;
1919
} else {
20-
exports[camelCase(match[1])] = v;
20+
exports[pascalCase(match[1])] = v;
2121
}
2222
}
2323
});

0 commit comments

Comments
 (0)