Skip to content

camel_to_snake adds underscore after digits#261

Closed
BlackBeardsoul wants to merge 1 commit intographql-python:mainfrom
BlackBeardsoul:fix/camel-to-snake-digit
Closed

camel_to_snake adds underscore after digits#261
BlackBeardsoul wants to merge 1 commit intographql-python:mainfrom
BlackBeardsoul:fix/camel-to-snake-digit

Conversation

@BlackBeardsoul
Copy link

@BlackBeardsoul BlackBeardsoul commented Mar 7, 2026

Fixed regex to add underscore between digit sequences and uppercase letters. Example: camel_to_snake('python2Thing') now returns 'python2_thing' instead of 'python2thing'.

Fixed regex to add underscore between digit sequences and uppercase letters.
Example: camel_to_snake('python2Thing') now returns 'python2_thing'
instead of 'python2thing'.
@BlackBeardsoul BlackBeardsoul requested a review from Cito as a code owner March 7, 2026 04:48
@codspeed-hq
Copy link

codspeed-hq bot commented Mar 7, 2026

Merging this PR will not alter performance

✅ 18 untouched benchmarks


Comparing BlackBeardsoul:fix/camel-to-snake-digit (93faadd) with main (c6625dd)

Open in CodSpeed

@Cito Cito changed the title Fix #140: camel_to_snake adds underscore after digits camel_to_snake adds underscore after digits Mar 7, 2026
Copy link
Member

@Cito Cito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue #140 had already been solved in 0ed4383. I have now added an extra test case to confirm that.

@Cito Cito closed this Mar 7, 2026
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.

2 participants