Fixes emoji name to code missing tones

This commit is contained in:
Joffrey JAFFEUX
2017-06-13 20:03:59 +02:00
committed by Robin Ward
parent 13f89a53a3
commit 299339a373
3 changed files with 27 additions and 2 deletions

View File

@ -220,7 +220,7 @@ module ApplicationHelper
def gsub_emoji_to_unicode(str)
if str
str.gsub(/:([\w\-+]*):/) { |name| Emoji.lookup_unicode($1) || name }
str.gsub(/:([\w\-+]*(?::t\d)?):/) { |name| Emoji.lookup_unicode($1) || name }
end
end