mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 01:31:35 +08:00
FIX: Safari issue with some emojis (#6456)
https://meta.discourse.org/t/emojis-selected-on-ios-displaying-additional-rectangles/86132/8
This commit is contained in:

committed by
Guo Xiang Tan

parent
43512e9865
commit
26956bbe1a
@ -20,6 +20,11 @@ __setUnicode = function(replacements) {
|
||||
}
|
||||
text = text.replace(m[0], replacement);
|
||||
}
|
||||
|
||||
// fixes Safari VARIATION SELECTOR-16 issue with some emojis
|
||||
// https://meta.discourse.org/t/emojis-selected-on-ios-displaying-additional-rectangles/86132
|
||||
text = text.replace(/\ufe0f/g, '');
|
||||
|
||||
return text;
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user