]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
search plugin: fix gcalc
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 13 Feb 2008 16:07:48 +0000 (17:07 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 13 Feb 2008 16:07:48 +0000 (17:07 +0100)
data/rbot/plugins/search.rb

index 46aa46fe538492f8c1365fd5b62685c0ce970243..b2e950ecd544b81247e2f380dab041dfbaf125e8 100644 (file)
@@ -18,7 +18,7 @@
 GOOGLE_SEARCH = "http://www.google.com/search?oe=UTF-8&q="
 GOOGLE_WAP_SEARCH = "http://www.google.com/wml/search?hl=en&q="
 GOOGLE_WAP_LINK = /<a accesskey="(\d)" href=".*?u=(.*?)">(.*?)<\/a>/im
-GOOGLE_CALC_RESULT = %r{<p><table><tr><td><img src=/images/calc_img\.gif(?: alt="")?></td><td>&nbsp;</td><td nowrap>(?:<h2 class=r>)?<font size=\+1><b>(.+)</b>(?:</h2>)?</td></tr><tr><td>}
+GOOGLE_CALC_RESULT = %r{<img src=/images/calc_img\.gif(?: width=40 height=30 alt="")?></td><td>&nbsp;</td><td nowrap>(?:<h2 class=r>)?<font size=\+1><b>(.+)</b>(?:</h2>)?</td>}
 GOOGLE_DEF_RESULT = %r{<p> (Web definitions for .*?)<br/>(.*?)<br/>(.*?)\s-\s+<a href}
 
 class SearchPlugin < Plugin