Skip to content

Commit

Permalink
fix: case when multiple _ are at the start of strings for camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
beepidibop committed Aug 2, 2024
1 parent afbfb41 commit 21397de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/create-ponder/src/helpers/graphqlTranslator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@ function camelCase(s: string): string {
while (s[0] === "_") {
s = s.slice(1);
s = s.charAt(0).toUpperCase() + s.slice(1);
s = "u".concat(s);
}
s = "u".concat(s);
}

// Convert UPPERCASE if needed
Expand Down

0 comments on commit 21397de

Please sign in to comment.