pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/graphql-python/graphql-core/pull/261

l-0bd78641c0a1f3e0.css" /> camel_to_snake adds underscore after digits by BlackBeardsoul · Pull Request #261 · graphql-python/graphql-core · GitHub
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
Copy Markdown

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

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
Copy Markdown
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

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy