summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorMatthias H <apoc@sixserv.org>2014-02-20 03:03:28 +0100
committerMatthias H <apoc@sixserv.org>2014-02-20 03:03:28 +0100
commit55854424f33fa07d60f0fd591e65d77cca30eaa7 (patch)
tree3a0c4c3524c758b3b9e05895a51b40ba29b5521c /data
parent0ddf77c9d54236bbc75c2b603871fc0c9e072873 (diff)
[plugin] googlefight fixed regexp
Diffstat (limited to 'data')
-rw-r--r--[-rwxr-xr-x]data/rbot/plugins/googlefight.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/googlefight.rb b/data/rbot/plugins/googlefight.rb
index 7fc748c0..da156fda 100755..100644
--- a/data/rbot/plugins/googlefight.rb
+++ b/data/rbot/plugins/googlefight.rb
@@ -54,7 +54,7 @@ class GoogleFightPlugin < Plugin
def google_count(query)
url = 'http://www.google.com/search?hl=en&safe=off&btnG=Search&q=' << CGI.escape(query)
html = Net::HTTP.get(URI.parse((url)))
- res = html.scan(%r{of about <b>([\d,]+)<\/b>})
+ res = html.scan(%r{About ([\d,]+) results})
res[0][0].to_s.tr(",", "").to_i
end
end