summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-06-30 10:47:03 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-06-30 10:47:03 +0200
commit62f5460b315213fe6e1d738a3dbc5ffbb7d6ce87 (patch)
tree0b120eeae3861f0be2325612d48addb0ae5fe35c /data/rbot
parent63f7f27ea4eeb4ca0d8ac835fdfad4f94f51e2e0 (diff)
search plugin: fix gcalc regexp
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/search.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/search.rb b/data/rbot/plugins/search.rb
index 28e3c8a3..b0decd51 100644
--- a/data/rbot/plugins/search.rb
+++ b/data/rbot/plugins/search.rb
@@ -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{<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_CALC_RESULT = %r{<img src=/images/calc_img\.gif(?: width=40 height=30 alt="")?></td><td>&nbsp;</td><td nowrap(?: dir=ltr)?>(?:<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