1
0
mirror of https://github.com/django/django.git synced 2025-10-25 22:56:12 +00:00

Fixed #28392 -- Fixed GIS's WKT regex to match large scientific notation numbers.

Thanks Greg Larmore for report and initial patch.
This commit is contained in:
Sergey Fedoseev
2017-09-11 18:13:02 +05:00
committed by Tim Graham
parent 4844af90fb
commit a0b4ecce57
2 changed files with 4 additions and 1 deletions

View File

@@ -8,6 +8,6 @@ wkt_regex = re.compile(r'^(SRID=(?P<srid>\-?\d+);)?'
r'(?P<wkt>'
r'(?P<type>POINT|LINESTRING|LINEARRING|POLYGON|MULTIPOINT|'
r'MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)'
r'[ACEGIMLONPSRUTYZ\d,\.\-\(\) ]+)$',
r'[ACEGIMLONPSRUTYZ\d,\.\-\+\(\) ]+)$',
re.I)
json_regex = re.compile(r'^(\s+)?\{.*}(\s+)?$', re.DOTALL)