Skip to content

Commit 5183ae7

Browse files
committed
Use non-capturing group inside RegExp
Replicates graphql/graphql-js@9dc9a56
1 parent 352a783 commit 5183ae7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphql/utilities/ast_from_value.py

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

3131
__all__ = ["ast_from_value"]
3232

33-
_re_integer_string = re.compile("^-?(0|[1-9][0-9]*)$")
33+
_re_integer_string = re.compile("^-?(?:0|[1-9][0-9]*)$")
3434

3535

3636
def ast_from_value(value: Any, type_: GraphQLInputType) -> Optional[ValueNode]:

0 commit comments

Comments
 (0)