mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:21:18 +08:00
Fixes emoji name to code missing tones
This commit is contained in:

committed by
Robin Ward

parent
13f89a53a3
commit
299339a373
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user