goog 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/goog +1 -1
- data/lib/goog.rb +1 -1
- metadata +1 -1
data/bin/goog
CHANGED
@@ -55,7 +55,7 @@ end
|
|
55
55
|
doc.search('ol li.g').each_with_index {|li, index|
|
56
56
|
next unless li.at('h3 a')
|
57
57
|
href = li.at('h3 a')['href']
|
58
|
-
link = href[/^\/url\?q=([^&]+)/, 1] || href
|
58
|
+
link = ((h = href[/^\/url\?q=([^&]+)/, 1]) && URI.unescape(h)) || href
|
59
59
|
if link !~ /^http:/
|
60
60
|
link = "http://google.com#{link}"
|
61
61
|
end
|
data/lib/goog.rb
CHANGED