each -> forEach
This commit is contained in:
parent
8a51ebcbcf
commit
0f96e18552
|
@ -126,7 +126,7 @@ _toUtc = (date) ->
|
||||||
_emojize = (text) ->
|
_emojize = (text) ->
|
||||||
emojis = text.match(/:\S+?:/g)
|
emojis = text.match(/:\S+?:/g)
|
||||||
if emojis isnt null
|
if emojis isnt null
|
||||||
emojis.uniq().each (emoji, ix) ->
|
emojis.uniq().forEach (emoji, ix) ->
|
||||||
strippedEmoji = emoji.substring(1, emoji.length - 1)
|
strippedEmoji = emoji.substring(1, emoji.length - 1)
|
||||||
unless EmojiDictionary.indexOf(strippedEmoji) is -1
|
unless EmojiDictionary.indexOf(strippedEmoji) is -1
|
||||||
image = '<img class=\'emoji\' title=\'' + emoji + '\' alt=\'' + emoji + '\' src=\'' + '/images/emoji/' + strippedEmoji + '.png\'/>'
|
image = '<img class=\'emoji\' title=\'' + emoji + '\' alt=\'' + emoji + '\' src=\'' + '/images/emoji/' + strippedEmoji + '.png\'/>'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user