Skip to content

Commit

Permalink
decamelize: ignore numeric characters
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelgatelement committed Jun 1, 2023
1 parent 16428e4 commit b97c218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion humps/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

ACRONYM_RE = re.compile(r"([A-Z\d]+)(?=[A-Z\d]|$)")
PASCAL_RE = re.compile(r"([^\-_]+)")
SPLIT_RE = re.compile(r"([\-_]*[A-Z][^A-Z]*[\-_]*)")
SPLIT_RE = re.compile(r"[^0-9]([\-_]*[A-Z][^A-Z]*[\-_]*)")
UNDERSCORE_RE = re.compile(r"(?<=[^\-_])[\-_]+[^\-_]")


Expand Down

0 comments on commit b97c218

Please sign in to comment.