Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix camel-case conversions to ignore allcaps #392

Merged
merged 3 commits into from
Oct 15, 2024
Merged

Conversation

jasongin
Copy link
Member

Fixes: #390

  • Improve code in ToCamelCase() to only convert identifiers that look like TitleCase - ignoring ALLCAPS.
  • Create JSMemberNameExpression() helper method (that uses ToCamelCase()) to simplify a common pattern in JSMarshaller.
  • Re-use JSMarshaller.ToCamelCase() in the generator to avoid duplication.

@jasongin jasongin merged commit 5fb0a61 into main Oct 15, 2024
24 checks passed
@jasongin jasongin deleted the dev/jasongin/allcaps branch October 15, 2024 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

All uppercase properties should be exported with the same name (by default)
2 participants