mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: Better emoji escaping for topic title (#7218)
* FIX: Fixed failing discourse-prometheus-alert-receiver plugin specs
This commit is contained in:
@@ -157,13 +157,7 @@ class Emoji
|
||||
end
|
||||
|
||||
def self.unicode_unescape(string)
|
||||
string.each_char.map do |c|
|
||||
if str = unicode_replacements[c]
|
||||
":#{str}:"
|
||||
else
|
||||
c
|
||||
end
|
||||
end.join
|
||||
PrettyText.escape_emoji(string)
|
||||
end
|
||||
|
||||
def self.gsub_emoji_to_unicode(str)
|
||||
|
||||
Reference in New Issue
Block a user