Browse Source

Removed bad chars for new emoji

Drop emoji skin tone modifiers and zero width char until the new emoji
will be fully supported.
#760
master
Igor Zhukov 10 years ago
parent
commit
7e968d8279
  1. 2
      app/js/services.js

2
app/js/services.js

@ -4148,7 +4148,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
// console.log(3, text, html); // console.log(3, text, html);
if (emojiFound) { 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, 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>'); '<span class="emoji emoji-spritesheet-$1" style="background-position: -$2px -$3px;" $4</span>');
} }

Loading…
Cancel
Save