kkpyutil 1.46.1__tar.gz → 1.46.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {kkpyutil-1.46.1 → kkpyutil-1.46.2}/PKG-INFO +1 -1
- {kkpyutil-1.46.1 → kkpyutil-1.46.2}/kkpyutil.py +3 -3
- {kkpyutil-1.46.1 → kkpyutil-1.46.2}/pyproject.toml +1 -1
- {kkpyutil-1.46.1 → kkpyutil-1.46.2}/LICENSE +0 -0
- {kkpyutil-1.46.1 → kkpyutil-1.46.2}/README.md +0 -0
- {kkpyutil-1.46.1 → kkpyutil-1.46.2}/kkpyutil_helper/windows/kkttssave.ps1 +0 -0
- {kkpyutil-1.46.1 → kkpyutil-1.46.2}/kkpyutil_helper/windows/kkttsspeak.ps1 +0 -0
|
@@ -1795,13 +1795,13 @@ def convert_compound_cases(text, style='pascal', instyle='auto'):
|
|
|
1795
1795
|
|
|
1796
1796
|
def _detect_casing(txt):
|
|
1797
1797
|
case_patterns = {
|
|
1798
|
-
'snake': r'^[a-
|
|
1799
|
-
'SNAKE': r'^[A-Z]
|
|
1798
|
+
'snake': r'^[a-zA-Z][a-zA-Z0-9\(\)]*(_[a-zA-Z0-9\(\)]+)+$', # Must have at least one underscore
|
|
1799
|
+
'SNAKE': r'^[A-Z][A-Z0-9\(\)]*(_[A-Z0-9\(\)]+)*$',
|
|
1800
1800
|
'camel': r'^[a-z]+([A-Z][a-z0-9]*)*$',
|
|
1801
1801
|
'kebab': r'^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)+$',
|
|
1802
1802
|
'pascal': r'^[A-Z][a-z0-9]+([A-Z][a-z0-9]*)*$',
|
|
1803
1803
|
'phrase': r'^[a-z]+( [a-z]+)*$',
|
|
1804
|
-
'title': r'^[A-Z][a-z]*(
|
|
1804
|
+
'title': r'^[A-Z][a-z]*( [A-Z\(][a-z\)]*)*$',
|
|
1805
1805
|
}
|
|
1806
1806
|
for case_style, pattern in case_patterns.items():
|
|
1807
1807
|
if re.match(pattern, txt):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|