From: Alexander Ebert Date: Tue, 26 Aug 2014 18:18:55 +0000 (+0200) Subject: Ensure that a smiley is always followed by a whitespace X-Git-Tag: 2.1.0_Alpha_1~399 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f21167b671c39ce98fe54d79b0f9a9eef0140f54;p=GitHub%2FWoltLab%2FWCF.git Ensure that a smiley is always followed by a whitespace --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js index a299afe433..984eb850b4 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -279,8 +279,8 @@ RedactorPlugins.wbbcode = { html = html.replace(/<\/sup>/gi, '[/sup]'); // 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(/]*?class="redactorEmbeddedAttachment" data-attachment-id="(\d+)".*?>/gi, '[attach=$1][/attach]');