Skip to content

Commit

Permalink
coordinate recognition regex update
Browse files Browse the repository at this point in the history
  • Loading branch information
proceps committed Aug 13, 2020
1 parent 40eb66f commit 0ecab35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utilities/geo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ def self.coordinates_regex_from_verbatim_label(text)
coordinates[:long_deg] = matchdata6[3]
coordinates[:long_we] = matchdata6[4]
# pattern: -12.263, 49.398
elsif matchdata7 = text.match(/\D(-?\d+[\.|,]\d+|\-?d+),.*?(-?\d+[\.|,]\d+|\-?d+)\D/)
elsif matchdata7 = text.match(/\D(-?\d+[\.|,]\d+|\-?\d+),.*?(-?\d+[\.|,]\d+|\-?\d+)\D/)
coordinates[:lat_deg] = matchdata7[1]
coordinates[:long_deg] = matchdata7[2]
end
Expand Down

0 comments on commit 0ecab35

Please sign in to comment.