diff options
author | romangraef <romangraef@loves.dicksinhisan.us> | 2018-08-26 11:05:44 +0200 |
---|---|---|
committer | romangraef <romangraef@loves.dicksinhisan.us> | 2018-08-26 11:05:44 +0200 |
commit | 3abeaaeee510cee943d589b5be8c15b8a145051c (patch) | |
tree | 273177803b298620660a88fdb418e8de22984f09 /configlib | |
parent | 7bb806a96d4f0ad4dd37a6db8adcf118bd523540 (diff) | |
parent | 767132f3c3b1714d453228bc1c5a5528c4fb9541 (diff) | |
download | configlib-3abeaaeee510cee943d589b5be8c15b8a145051c.tar.gz configlib-3abeaaeee510cee943d589b5be8c15b8a145051c.tar.bz2 configlib-3abeaaeee510cee943d589b5be8c15b8a145051c.zip |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'configlib')
-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: |