We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a65ca9 commit 67892b2Copy full SHA for 67892b2
src/betterproto/casing.py
@@ -8,11 +8,11 @@
8
9
# Optionally capitalized word.
10
# language=PythonRegExp
11
-WORD = "[A-Z]*[a-z]*[0-9]*"
+WORD = "[A-Z]*([a-z]|([0-9][A-Z]*))*"
12
13
# Uppercase word, not followed by lowercase letters.
14
15
-WORD_UPPER = "[A-Z]+(?![a-z])[0-9]*"
+WORD_UPPER = "([A-Z]+(?![a-z])[0-9]*)+"
16
17
18
def safe_snake_case(value: str) -> str:
0 commit comments