From 767132f3c3b1714d453228bc1c5a5528c4fb9541 Mon Sep 17 00:00:00 2001 From: Roman Gräf Date: Fri, 3 Aug 2018 08:50:41 +0000 Subject: Fixed bug with pascal case parsing --- configlib/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configlib') 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: -- cgit