summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2010-10-31 12:38:42 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2010-10-31 12:38:42 +0100
commit93be58cf16a0e1d993e2636493565d311e208f19 (patch)
tree1786dedfdd8e7ed18519c1fcec2d58c478f7df8e /data/rbot
parenta306b2c68eb58c1c88057ff7ee78895401adb6a9 (diff)
urban: fix regexp
Diffstat (limited to 'data/rbot')
-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 cdef78ee..6c10ed4b 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'>(?:<a.*?>)?([^>]+)(?:</a>)?</td>.*?<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