From: Giuseppe Bilotta Date: Wed, 1 Sep 2010 13:04:18 +0000 (+0200) Subject: search: google calc can be in non-h2 headers X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=14470d46ea334b1266de97e30b220d3234e17548;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git search: google calc can be in non-h2 headers --- diff --git a/data/rbot/plugins/search.rb b/data/rbot/plugins/search.rb index 8b3b6848..dc525929 100644 --- a/data/rbot/plugins/search.rb +++ b/data/rbot/plugins/search.rb @@ -19,7 +19,7 @@ GOOGLE_SEARCH = "http://www.google.com/search?oe=UTF-8&q=" GOOGLE_WAP_SEARCH = "http://www.google.com/m/search?hl=en&q=" # GOOGLE_WAP_LINK = /(.*?)<\/a>/im GOOGLE_WAP_LINK = /(.*?)<\/a>/im -GOOGLE_CALC_RESULT = %r{.*?

]*>(.+?)} +GOOGLE_CALC_RESULT = %r{.*?]*>(.+?)} GOOGLE_COUNT_RESULT = %r{Results 1<\/b> - 10<\/b> of about (.*)<\/b> for} GOOGLE_DEF_RESULT = %r{]*>(Web definitions for .*?)
(.*?)
(.*?)\s-\s+
]+>(.+?)<(br|/td)>}