Ticket #7540: minus4json.diff

File minus4json.diff, 692 bytes (added by kenichi.ueda@…, 16 years ago)

Tiny fix to JSON-recognizing regex

  • django/contrib/gis/gdal/geometries.py

     
    6262# Regular expressions for recognizing HEXEWKB and WKT.
    6363hex_regex = re.compile(r'^[0-9A-F]+$', re.I)
    6464wkt_regex = re.compile(r'^(?P<type>POINT|LINESTRING|LINEARRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)[ACEGIMLONPSRUTY\d,\.\-\(\) ]+$', re.I)
    65 json_regex = re.compile(r'^\{[\s\w,\.\"\'\:\[\]]+\}$')
     65json_regex = re.compile(r'^\{[\s\w,\-\.\"\'\:\[\]]+\}$')
    6666
    6767#### OGRGeometry Class ####
    6868class OGRGeometry(object):
Back to Top