Skip to content

Commit 3097588

Browse files
committed
Update regexp in read_number.
1 parent 4f3fc86 commit 3097588

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphql/core/language/lexer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def read_number(source, start, first_code):
214214
or an int depending on whether a decimal point appears.
215215
216216
Int: -?(0|[1-9][0-9]*)
217-
Float: -?(0|[1-9][0-9]*)\.[0-9]+(e-?[0-9]+)?"""
217+
Float: -?(0|[1-9][0-9]*)(\.[0-9]+)?((E|e)(+|-)?[0-9]+)?"""
218218
code = first_code
219219
body = source.body
220220
position = start

0 commit comments

Comments
 (0)