From 49ddfa785796f3ae4550ace918fd8282bd91e42a Mon Sep 17 00:00:00 2001 From: Raine Virta Date: Wed, 21 Oct 2009 18:43:56 +0300 Subject: urban: fix regex for detecting an undefined term --- data/rbot/plugins/urban.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/rbot/plugins/urban.rb b/data/rbot/plugins/urban.rb index 6f052fcf..f4355061 100644 --- a/data/rbot/plugins/urban.rb +++ b/data/rbot/plugins/urban.rb @@ -19,7 +19,7 @@ class UrbanPlugin < Plugin s = @bot.httputil.get(u) return m.reply("Couldn't get the urban dictionary definition for #{word}") if s.nil? - notfound = s.match %r{
.*? isn't defined} + notfound = s.match %r{.*? isn't defined} numpages = s[%r{
.*?
}m].scan(/\d+/).collect {|x| x.to_i}.max || 1 -- cgit v1.2.3