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 6, 2024
1 parent 5168a6f commit 66a3ecf
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 66a3ecf

Please sign in to comment.