We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 034d2e3 commit 79e9b52Copy full SHA for 79e9b52
src/Case.ts
@@ -10,7 +10,7 @@ export enum Case {
10
}
11
// Convert a string from snake case to camel case.
12
const toCamelCase = (str: string): string => {
13
- return str.replace(/_([a-z])/g, match => match[1].toUpperCase());
+ return str.replace(/_([a-z0-9])/g, match => match[1].toUpperCase());
14
};
15
16
// Convert a string from camel case or pascal case to snake case.
0 commit comments