From d66674d01a00e93af2cdbb577bce57efaf6a41c7 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 27 Oct 2014 13:15:44 +0100 Subject: [PATCH] Fixed color parsing --- wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js index cfabc55179..80c02013c6 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -361,7 +361,7 @@ RedactorPlugins.wbbcode = function() { $start = '[color=#' + $hex + ']'; $end = '[/color]'; } - else if ($style.match(/color: ?(.*?);?/i)) { + else if ($style.match(/color: ?([^;]+);?/i)) { $start = '[color=' + RegExp.$1 + ']'; $end = '[/color]'; } -- 2.20.1