diff options
author | Roman Gräf <romangraef@loves.dicksinhisan.us> | 2018-08-03 08:50:41 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-03 08:50:41 +0000 |
commit | 767132f3c3b1714d453228bc1c5a5528c4fb9541 (patch) | |
tree | c67291edcad79e3ee237c4f29cbe1b774364a934 | |
parent | 3bd927619d24134b4711f37ae471b7a52c084f3a (diff) | |
download | configlib-767132f3c3b1714d453228bc1c5a5528c4fb9541.tar.gz configlib-767132f3c3b1714d453228bc1c5a5528c4fb9541.tar.bz2 configlib-767132f3c3b1714d453228bc1c5a5528c4fb9541.zip |
Fixed bug with pascal case parsing
-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: |