diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rbot/messagemapper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/messagemapper.rb b/lib/rbot/messagemapper.rb index 8b21ee2e..b9aad91a 100644 --- a/lib/rbot/messagemapper.rb +++ b/lib/rbot/messagemapper.rb @@ -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(/\$$/,'') |