Skip to content

Preserve leading _ for camel/pascal renaming#620

Merged
jcrist merged 1 commit intomainfrom
preserve-leading-underscores-rename-camel
Dec 20, 2023
Merged

Preserve leading _ for camel/pascal renaming#620
jcrist merged 1 commit intomainfrom
preserve-leading-underscores-rename-camel

Conversation

@jcrist
Copy link
Copy Markdown
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
@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