10000 Fixed regex · graphql-python/sanic-graphql@506c426 · GitHub
[go: up one dir, main page]

Skip to content

Commit 506c426

Browse files
committed
Fixed regex
1 parent 67530bd commit 506c426

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sanic_graphql/render_graphiql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133

134134

135135
def process_var(template, name, value, jsonify=False):
136-
pattern = r'{{\s*' + name + r'(|[^}]+)*\s*}}'
136+
pattern = r'{{\s*' + name + r'(\s*|[^}]+)*\s*}}'
137137
if jsonify:
138138
value = json.dumps(value).replace('\\n', '\\\\n').replace('\"', '\\\"')
139139

0 commit comments

Comments
 (0)
0