lib/slack-ruby-bot/commands/base.rb in slack-ruby-bot-0.10.1 vs lib/slack-ruby-bot/commands/base.rb in slack-ruby-bot-0.10.2

- old
+ new

@@ -34,10 +34,10 @@ def help(&block) CommandsHelper.instance.capture_help(self, &block) end def default_command_name - name && name.split(':').last.downcase + name ? name.split(':').last.downcase : object_id.to_s end def operator(*values, &block) values = values.map { |value| Regexp.escape(value) }.join('|') match Regexp.new("^(?<operator>#{values})(?<expression>.*)$", Regexp::IGNORECASE), &block