]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/messagemapper.rb
Utils: fix a stupid bug in rubygems require and add more first_html_par code
[user/henk/code/ruby/rbot.git] / lib / rbot / messagemapper.rb
index 8b21ee2efcd4ff79a46928364bdf33e3f19818d9..b9aad91ab4cefac8b16ef634f33586ae44638848 100644 (file)
@@ -417,7 +417,7 @@ module Irc
         debug "Requirements for #{name}: #{has_req.inspect}"
         case has_req
         when nil
-          sub = is_single ? "\\S+" : ".*"
+          sub = is_single ? "\\S+" : ".*?"
         when Regexp
           # Remove captures and the ^ and $ that are sometimes placed in requirement regexps
           sub = has_req.remove_captures.source.sub(/^\^/,'').sub(/\$$/,'')