diff options
author | Matthias Hecker <apoc@sixserv.org> | 2013-10-13 22:44:43 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2013-11-02 11:29:57 +0100 |
commit | a4b3936e5b3082f2e4a00592b7e65c0ed18158c6 (patch) | |
tree | d011781aa2966640a272714368a134104127bd97 /data | |
parent | 46481eb0434ddb09754f7d12fd41a94de6d63871 (diff) |
urban: updated pattern
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/urban.rb | 2 |
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 |