diff --git a/app/utils/helpers.coffee b/app/utils/helpers.coffee index fcfd0a16..14799ee9 100644 --- a/app/utils/helpers.coffee +++ b/app/utils/helpers.coffee @@ -144,7 +144,7 @@ _emojize = (text) -> if emojis isnt null emojis.uniq().forEach (emoji, ix) -> strippedEmoji = emoji.substring(1, emoji.length - 1) - unless EmojiDictionary.indexOf(strippedEmoji) is -1 + unless emojiDictionary.indexOf(strippedEmoji) is -1 image = '\''' text = text.replace(new RegExp(emoji, 'g'), image) text