diff options
-rw-r--r-- | configlib/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configlib/util.py b/configlib/util.py index f325f25..64a12dd 100644 --- a/configlib/util.py +++ b/configlib/util.py @@ -17,7 +17,7 @@ def parse_case(any_case: str) -> List[str]: return any_case.lower().split('_') if '-' in any_case: return any_case.lower().split('-') - return [word.lower() for word in re.split('(?<=[a-z0-9])(?=[A-Z])', any_case)] + return [word.lower() for word in re.sub('(?<=[a-z0-9])(?=[A-Z])', '\n', any_case).split('\n')] def snake_case(any_case: str) -> str: |