Removed bad chars for new emoji
Drop emoji skin tone modifiers and zero width char until the new emoji will be fully supported. #760
This commit is contained in:
parent
a3ac59a73f
commit
7e968d8279
@ -4148,7 +4148,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
|
||||
// console.log(3, text, html);
|
||||
|
||||
if (emojiFound) {
|
||||
text = text.replace(/\ufe0f|️/g, '', text);
|
||||
text = text.replace(/\ufe0f|️|�|‍/g, '', text);
|
||||
text = text.replace(/<span class="emoji emoji-(\d)-(\d+)-(\d+)"(.+?)<\/span>/g,
|
||||
'<span class="emoji emoji-spritesheet-$1" style="background-position: -$2px -$3px;" $4</span>');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user