diff options
author | Chris Gahan <chris@ill-logic.com> | 2006-01-26 22:22:41 +0000 |
---|---|---|
committer | Chris Gahan <chris@ill-logic.com> | 2006-01-26 22:22:41 +0000 |
commit | b16c418dc07ccb0821eb7db986aad859bbc68523 (patch) | |
tree | da896f31cc20cdcce128f48406d3ad5fdd5438b9 | |
parent | 576d95621f715d48845472b2e29c0a0c0996020f (diff) |
Whoops, forgot to ungreedy the <title>-finding regexes.
-rw-r--r-- | data/rbot/plugins/url.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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', |