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 b431bfe commit 22b8b90Copy full SHA for 22b8b90
graphene/utils/str_converters.py
@@ -18,4 +18,4 @@ def to_snake_case(name):
18
19
20
def to_const(string):
21
- return re.sub('[\W|^(?=\d)]+', '_', string).upper()
+ return re.sub('[\W|^]+', '_', string).upper()
0 commit comments