Skip to content

Camel to snake case conversion doesn't add an underscore after a digit #140

Closed
@Matt343

Description

@Matt343

The pyutils.camel_to_snake function does not add an underscore if a capital letter occurs after a non-letter character. For example, came_to_snake("python2Thing") returns python2thing instead of python2_thing. This seems counterintuitive, as it changes the case of the T without adding an underscore as usual.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions