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

Preserve leading _ for camel/pascal renaming #620

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

jcrist
Copy link
Owner

@jcrist jcrist commented Dec 20, 2023

Previously leading underscores were stripped when renaming fields to a camelCase or PascalCase convention. We now preserve leading underscores, better matching the behavior and conventions of other libraries.

Before: _field_one -> fieldOne
Now: _field_one -> _fieldOne

Fixes #618.

Previously leading underscores were stripped when renaming fields to a
`camelCase` or `PascalCase` convention. We now preserve leading
underscores, better matching the behavior and conventions of other
libraries.

Before: `_field_one` -> `fieldOne`
Now: `_field_one` -> `_fieldOne`
@jcrist jcrist merged commit f2cc0e5 into main Dec 20, 2023
8 checks passed
@jcrist jcrist deleted the preserve-leading-underscores-rename-camel branch December 20, 2023 03:53
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.

leading underscores and "camel" rename strategy
1 participant