diff --git a/humps/main.py b/humps/main.py index 8e9a438..bd586f5 100644 --- a/humps/main.py +++ b/humps/main.py @@ -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"(?<=[^\-_])[\-_]+[^\-_]")