lib/slack/smart-bot/commands/general/see_announcements.rb in slack-smart-bot-1.11.0 vs lib/slack/smart-bot/commands/general/see_announcements.rb in slack-smart-bot-1.12.0

- old
+ new

@@ -57,10 +57,10 @@ end if @announcements.key?(channel_id) message = [] @announcements[channel_id].each do |m| if m[:user_deleted] == '' and (type == 'all' or type == '' or type==m[:type]) - if m[:type].match?(/:\w+:/) + if m[:type].match?(/:[\w\-]+:/) emoji = m[:type] elsif m[:type] == 'white' emoji = ':white_square:' else emoji = ":large_#{m[:type]}_square:"