diff options
author | matthew <matthew> | 2007-06-18 14:22:33 +0000 |
---|---|---|
committer | matthew <matthew> | 2007-06-18 14:22:33 +0000 |
commit | 325d8f28ec342d9fdbf7b0cd8117f8f20d2eee22 (patch) | |
tree | 4a8739336ab6b0e59aaa155604628639a33aa6ba | |
parent | 205e7c876816b5e9a59b2b89faa7c4ce4986465b (diff) |
Spaces optional.
-rwxr-xr-x | web/index.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/index.cgi b/web/index.cgi index 34789b1bc..660d8218d 100755 --- a/web/index.cgi +++ b/web/index.cgi @@ -6,7 +6,7 @@ # Copyright (c) 2006 UK Citizens Online Democracy. All rights reserved. # Email: matthew@mysociety.org. WWW: http://www.mysociety.org # -# $Id: index.cgi,v 1.143 2007-06-18 12:21:17 francis Exp $ +# $Id: index.cgi,v 1.144 2007-06-18 14:22:33 matthew Exp $ use strict; require 5.8.0; @@ -881,7 +881,7 @@ sub geocode_string { # Northern Ireland, hopefully $error = "We do not cover Northern Ireland, I'm afraid, as our licence doesn't include any maps for the region."; } else { - $js =~ /center: {lat: (.*?),lng: (.*?)}/; + $js =~ /center:\s*{lat:\s*(.*?),lng:\s*(.*?)}/; my $lat = $1; my $lon = $2; ($easting,$northing) = mySociety::GeoUtil::wgs84_to_national_grid($lat, $lon, 'G'); $x = int(Page::os_to_tile($easting))-1; |