improve replace emoji regex

stable
Juanfran 2017-01-12 13:05:43 +01:00
parent 58f20263bb
commit 6409614b39
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ class WysiwygService
return html return html
replaceEmojiNameByImgs: (text) -> replaceEmojiNameByImgs: (text) ->
emojiIds = taiga.getMatches(text, /:([^: ]*):/g) emojiIds = taiga.getMatches(text, /:([\w ]*):/g)
for emojiId in emojiIds for emojiId in emojiIds
regexImgs = new RegExp(':' + emojiId + ':', 'g') regexImgs = new RegExp(':' + emojiId + ':', 'g')