summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authora7x <a7x@irc>2010-06-29 04:11:58 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2010-07-01 15:11:00 +0200
commit1158e734a90eef153204b4b68a428ff330287a07 (patch)
tree3b0e023992586c6ed87cd3ef09349cb760c25bd4 /data/rbot
parente39257443efc53bf378a971468969fb83f92b31a (diff)
Fixed googlefight.rb regex
Diffstat (limited to 'data/rbot')
-rwxr-xr-xdata/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 0b9393ef..894d2233 100755
--- 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{Results <b>1</b> - <b>\d+</b> of(?: about)? <b>([\d,]+)</b>})
+ res = html.scan(%r{>About ([\d,]+) results<nobr>})
res.to_s.tr(",", "").to_i
end
end