Ticket #15529: regex.diff
File regex.diff, 627 bytes (added by , 14 years ago) |
---|
-
django/contrib/gis/geometry/regex.py
diff --git a/django/contrib/gis/geometry/regex.py b/django/contrib/gis/geometry/regex.py index 1b9e2f4..feb6b1f 100644
a b wkt_regex = re.compile(r'^(SRID=(?P<srid>\d+);)?' 9 9 r'(?P<type>POINT|LINESTRING|LINEARRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)' 10 10 r'[ACEGIMLONPSRUTYZ\d,\.\-\(\) ]+)$', 11 11 re.I) 12 json_regex = re.compile(r'^(\s+)?\{ [\s\w,\[\]\{\}\-\."\':]+\}(\s+)?$')12 json_regex = re.compile(r'^(\s+)?\{.*}(\s+)?$', re.DOTALL)