summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Hecker <apoc@sixserv.org>2013-10-13 22:44:43 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2013-11-02 11:29:57 +0100
commita4b3936e5b3082f2e4a00592b7e65c0ed18158c6 (patch)
treed011781aa2966640a272714368a134104127bd97
parent46481eb0434ddb09754f7d12fd41a94de6d63871 (diff)
urban: updated pattern
-rw-r--r--data/rbot/plugins/urban.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/urban.rb b/data/rbot/plugins/urban.rb
index 8186dbd7..a15b3622 100644
--- a/data/rbot/plugins/urban.rb
+++ b/data/rbot/plugins/urban.rb
@@ -26,7 +26,7 @@ class UrbanPlugin < Plugin
else 1 end
rv = Array.new
- s.scan(%r{<td class='index'[^>]*>.*?(\d+)\..*?</td>.*?<td class='word'[^>]*>.*?<span>(.*?)</span>.*?<div class="definition">(.+?)</div>.*?<div class="example">(.+?)</div>}m) do |num, wrd, desc, ex|
+ s.scan(%r{<div class='word'[^>]*>.*?<a class="index"[^>]*>.*?(\d+)\..*?</a>.*?<span>(.*?)</span>.*?<div class="definition">(.+?)</div>.*?<div class="example">(.+?)</div>}m) do |num, wrd, desc, ex|
rv << [num.to_i, wrd.strip, desc.strip, ex.strip]
end