lib/slack-ruby-bot/commands/about.rb in slack-ruby-bot-0.5.2 vs lib/slack-ruby-bot/commands/about.rb in slack-ruby-bot-0.5.3
- old
+ new
@@ -1,9 +1,9 @@
module SlackRubyBot
module Commands
class Default < Base
command 'about'
- match(/^(?<bot>[\w[:punct:]@<>]*)$/)
+ match(/^(?<bot>[[:alnum:][:punct:]@<>]*)$/u)
def self.call(client, data, _match)
send_message_with_gif client, data.channel, SlackRubyBot::ABOUT, 'selfie'
end
end