Skip to content

Commit 8c96fc0

Browse files
committed
fix regex
1 parent 5f84c3c commit 8c96fc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1286,7 +1286,7 @@ def _get_graphql_operation_name(query):
12861286

12871287
query = query["query"].strip()
12881288

1289-
match = re.match(r"^[a-z]* +([a-zA-Z0-9]+) \(?.*\)? *\{", query)
1289+
match = re.match(r"^[a-z]* *([a-zA-Z0-9]+) \(?.*\)? *\{", query)
12901290
if match:
12911291
return match.group(1)
12921292
return "anonymous"

0 commit comments

Comments
 (0)