Fixed color parsing
authorAlexander Ebert <ebert@woltlab.com>
Mon, 27 Oct 2014 12:15:44 +0000 (13:15 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 27 Oct 2014 12:15:44 +0000 (13:15 +0100)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js

index cfabc5517996106debf8cf7901bed0d4ff8b6dd7..80c02013c6ef4e7a07a704042bd282534839ff3d 100644 (file)
@@ -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]';
                                                        }