From b16c418dc07ccb0821eb7db986aad859bbc68523 Mon Sep 17 00:00:00 2001 From: Chris Gahan Date: Thu, 26 Jan 2006 22:22:41 +0000 Subject: Whoops, forgot to ungreedy the -finding regexes. --- data/rbot/plugins/url.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data') diff --git a/data/rbot/plugins/url.rb b/data/rbot/plugins/url.rb index f13398a8..b7e10b3d 100644 --- a/data/rbot/plugins/url.rb +++ b/data/rbot/plugins/url.rb @@ -3,7 +3,7 @@ require 'uri' require 'cgi' Url = Struct.new("Url", :channel, :nick, :time, :url) -TITLE_RE = /<\s*title\s*>(.+)<\s*\/title\s*>/im +TITLE_RE = /<\s*?title\s*?>(.+?)<\s*?\/title\s*?>/im class UrlPlugin < Plugin BotConfig.register BotConfigIntegerValue.new('url.max_urls', -- cgit v1.2.3