Skip to content
Browse files

fix bug with parsing accuracy [dvrensk]

  • Loading branch information...
1 parent ba6c392 commit 35d97ed3244c8159738987686c59cd35260fdaf2 @greatseth committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/google/geo/parser.rb
  2. +1 −1 test/fixtures/success.xml
View
2 lib/google/geo/parser.rb
@@ -10,7 +10,7 @@ def fetch(element)
# Like fetch, but for the only piece of data locked away in an attribute.
def fetch_accuracy
- @xml.slice(%r{Accuracy="([^"]+)">}, 1).to_i
+ @xml.slice(%r{Accuracy="([^"]+)"}, 1).to_i
end
end
View
2 test/fixtures/success.xml
@@ -8,7 +8,7 @@
</Status>
<Placemark>
<address>1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA</address>
- <AddressDetails xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0" Accuracy="8">
+ <AddressDetails xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0" Accuracy="8" foo="bar">
<Country>
<CountryNameCode>US</CountryNameCode>
<AdministrativeArea>

0 comments on commit 35d97ed

Please sign in to comment.
Something went wrong with that request. Please try again.