diff options
Diffstat (limited to 'data/rbot/plugins/urban.rb')
-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 d6688306..8186dbd7 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'>(?:<a.*?>)?([^>]+)(?:</a>)?</td>.*?<div class="definition">(.+?)</div>.*?<div class="example">(.+?)</div>}m) do |num, wrd, desc, ex| + 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| rv << [num.to_i, wrd.strip, desc.strip, ex.strip] end |