lib/geomancer.rb in geomancer-0.7.0 vs lib/geomancer.rb in geomancer-0.7.1
- old
+ new
@@ -19,10 +19,10 @@
Geocoder.configure(geocoder_config)
end
end
- LAT_LONG_RE = /lat(itude)?:\s+(?<latitude>[\d\.\-]+)[\s,]+long(itude)?:\s+(?<longitude>[\d\.\-]+)/
+ LAT_LONG_RE = /lat(itude)?:?\s+(?<latitude>[\d\.\-]+)[\s,]+long(itude)?:?\s+(?<longitude>[\d\.\-]+)/
def self.extract_lat_and_long address
matches = LAT_LONG_RE.match(address)
return nil if !matches