From 4539f5c6ff3d821ce767957630faa7c7df87ba91 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 24 Feb 2015 11:25:52 +0100 Subject: [PATCH] Slightly improved smiley detection --- .../install/files/js/3rdParty/redactor/plugins/wbbcode.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js index 43f0f8b9e2..37c3ce522e 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -554,8 +554,8 @@ RedactorPlugins.wbbcode = function() { }); // smileys - html = html.replace(/ ?]*?alt="([^"]+?)" class="smiley".*?> ?/gi, ' $1 '); // firefox - html = html.replace(/ ?]*?class="smiley" alt="([^"]+?)".*?> ?/gi, ' $1 '); // chrome, ie + html = html.replace(/ ?]*?alt="([^"]+?)".*?class="smiley".*?> ?/gi, ' $1 '); // firefox + html = html.replace(/ ?]*?class="smiley".*?alt="([^"]+?)".*?> ?/gi, ' $1 '); // chrome, ie // attachments html = html.replace(//gi, function(match, attributesBefore, attributesAfter) { -- 2.20.1