From a4b3936e5b3082f2e4a00592b7e65c0ed18158c6 Mon Sep 17 00:00:00 2001 From: Matthias Hecker Date: Sun, 13 Oct 2013 22:44:43 +0000 Subject: urban: updated pattern --- data/rbot/plugins/urban.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data') 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{]*>.*?(\d+)\..*?.*?]*>.*?(.*?).*?
(.+?)
.*?
(.+?)
}m) do |num, wrd, desc, ex| + s.scan(%r{
]*>.*?]*>.*?(\d+)\..*?.*?(.*?).*?
(.+?)
.*?
(.+?)
}m) do |num, wrd, desc, ex| rv << [num.to_i, wrd.strip, desc.strip, ex.strip] end -- cgit v1.2.3