From 7e968d8279fdb43caf62092fb8ce615f30818376 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Mon, 13 Apr 2015 17:25:29 +0300 Subject: [PATCH] Removed bad chars for new emoji Drop emoji skin tone modifiers and zero width char until the new emoji will be fully supported. #760 --- app/js/services.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/js/services.js b/app/js/services.js index 2229b39c..9610df7a 100755 --- a/app/js/services.js +++ b/app/js/services.js @@ -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(//g, ''); }