lib/danger/helpers/emoji_mapper.rb in danger-6.2.0 vs lib/danger/helpers/emoji_mapper.rb in danger-6.2.1

- old
+ new

@@ -6,18 +6,19 @@ "warning" => "⚠️", "book" => "📖", "white_check_mark" => "✅" }, "bitbucket_server" => { - "no_entry_sign" => "\u274C", - "warning" => "⚠️", - "book" => "\u2728", - "white_check_mark" => "\u2705" + "no_entry_sign" => ":no_entry_sign:", + "warning" => ":warning:", + "book" => ":book:", + "white_check_mark" => ":white_check_mark:" } }.freeze def initialize(template) - @template = DATA.include?(template) ? template : "github" + template.sub!('_inline', '') + @template = DATA.has_key?(template) ? template : "github" end def map(emoji) emoji.delete! ":" DATA[template][emoji]