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 snakecase converter for multi-numeric strings #517

Closed
wants to merge 1 commit into from

Conversation

jespBE
Copy link

@jespBE jespBE commented Feb 12, 2024

Resolves #516

Change to the SnakeCase letter converter to give more consistent behavior for strings containing multiple numeric characters in sequence. For instance:

print(old_snakecase('Alice'), new_snakecase('Alice'))
alice alice

print(old_snakecase('Alice123'), new_snakecase('Alice123'))
alice_1_2_3 alice123

print(old_snakecase('AliceBob123'), new_snakecase('AliceBob123'))
alice_bob_1_2_3 alice_bob123

@jespBE
Copy link
Author

jespBE commented Feb 12, 2024

Closing because uploaded on wrong Github account, oops!

@jespBE jespBE closed this Feb 12, 2024
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] SNAKE LetterCase conversion adding extra underscores for numeric parts
1 participant