From e1a93c93344b46fad449666f15351a9038b4e7ca Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 25 Feb 2015 10:51:52 +0100 Subject: [PATCH] Fixed smiley replacement being too greedy --- .../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 d4eb8e8cc7..959a85eab8 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