lib/slack-ruby-bot/config.rb in slack-ruby-bot-0.4.3 vs lib/slack-ruby-bot/config.rb in slack-ruby-bot-0.4.4
- old
+ new
@@ -9,10 +9,10 @@
attr_accessor :user_id
attr_accessor :team
attr_accessor :team_id
def names
- [user, aliases, "<@#{user_id.downcase}>", "<@#{user_id.downcase}>:"].compact.flatten
+ [user, aliases, "<@#{user_id.downcase}>", "<@#{user_id.downcase}>:", "#{user}:"].compact.flatten
end
def name?(name)
name && names.include?(name.downcase)
end