Skip to content
Snippets Groups Projects
Commit c4af3491 authored by Alex Reisner's avatar Alex Reisner
Browse files

Be more flexible about key part delimiters.

parent 08286a12
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ module Geocoder
opts.on("-k <key>", "--key <key>",
"Key for geocoding API (usually optional). Enclose multi-part keys in quotes and separate parts by spaces") do |key|
if (key_parts = key.split(' ')).size > 1
if (key_parts = key.split(/\s+/)).size > 1
Geocoder.configure(:api_key => key_parts)
else
Geocoder.configure(:api_key => key)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment