Django

Code

Ticket #10625 (closed: worksforme)

Opened 1 year ago

Last modified 1 year ago

Ewkt regexp incorrectly escaped

Reported by: timlinux Assigned to: springmeyer
Milestone: 1.1 Component: GIS
Version: SVN Keywords: regexp ewkt
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

Hi

in http://code.djangoproject.com/browser/django/trunk/django/contrib/gis/templates/gis/admin/openlayers.js the regexp on line 3 is incorrectly escaped, causing conversion from ewkt to wkt to fail for me. I fixed it by changing:

new RegExp("^SRID=\d+;(.+)", "i");

to

new RegExp("^SRID=\\d+;(.+)", "i");

After which it correctly works for me. Would be great if you can apply this fix.

Thanks

Tim

Attachments

Change History

03/28/09 22:15:09 changed by Alex

  • needs_better_patch changed.
  • needs_docs changed.
  • needs_tests changed.
  • milestone changed from 1.1 beta to 1.1.

04/02/09 11:17:06 changed by jbronn

What browser version, please?

05/08/09 10:50:12 changed by psmith

I wasn't able to reproduce this. I tried:

  • Linux:
    • FF 3.0.9
    • Opera 9.6
  • Win XP:
    • FF 3.0.10
    • Opera 9.64
    • IE 6.0.x

Suggest this be punted to 1.2 since we don't have a user-agent yet of the reported bug.

05/08/09 10:52:52 changed by Alex

  • status changed from new to closed.
  • resolution set to worksforme.

Paul tried half a dozen browsers and we have no new information from the reported, marking as worksforme.


Add/Change #10625 (Ewkt regexp incorrectly escaped)




Change Properties
Action