Skip to content

Keep digits attached to preceding letter in SNAKE letter case - #576

Open
SAY-5 wants to merge 1 commit into
lidatong:masterfrom
SAY-5:fix-snakecase-digits
Open

Keep digits attached to preceding letter in SNAKE letter case#576
SAY-5 wants to merge 1 commit into
lidatong:masterfrom
SAY-5:fix-snakecase-digits

Conversation

@SAY-5

@SAY-5 SAY-5 commented May 12, 2026

Copy link
Copy Markdown

LetterCase.SNAKE inserts an underscore before every digit, so a field like cardsV2 serializes to cards_v_2 instead of cards_v2. This reverts snakecase to split only on uppercase letters, matching the original vendored stringcase behavior. Closes #555.

@SAY-5

SAY-5 commented May 12, 2026

Copy link
Copy Markdown
Author

CI failures here are unrelated to this change: the Install Poetry and dependencies step fails on the runners with "Poetry installation failed" before any of this PR's code runs. The mypy step that did execute passed, and flake8 reports no new issues.

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.

[BUG] LetterCase.SNAKE renders names with letters and numbers incorrectly.

1 participant