Skip to content

Commit

Permalink
Merge pull request #295 from vector-im/master
Browse files Browse the repository at this point in the history
decamelize: ignore numeric characters
  • Loading branch information
nficano committed Nov 13, 2023
2 parents 16428e4 + 661828b commit d26eccd
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 d26eccd

Please sign in to comment.