From f341da2d2c1a73c396b1eccb32c6129bcf88c0a7 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Wed, 6 Jul 2016 14:17:05 +0300 Subject: [PATCH] Fixed firefox sanitize emoji Closes #1181 --- app/js/lib/ng_utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/js/lib/ng_utils.js b/app/js/lib/ng_utils.js index 01ad52a0..da91f2b1 100644 --- a/app/js/lib/ng_utils.js +++ b/app/js/lib/ng_utils.js @@ -1743,8 +1743,8 @@ angular.module('izhukov.utils', []) if (!options.nested && (emojiFound || options.hasNested)) { text = text.replace(/\ufe0f|️|�|‍/g, '', text) var emojiSizeClass = curEmojiSize == 18 ? '' : (' emoji-w' + curEmojiSize) - text = text.replace(//g, - '') + text = text.replace(/]*)?) class="emoji emoji-(\d)-(\d+)-(\d+)"(.+?)<\/span>/g, + '') } return $sce.trustAs('html', text)