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:
Igor Zhukov 2015-04-13 17:25:29 +03:00
parent a3ac59a73f
commit 7e968d8279

View File

@ -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>');
}