From 474d6c549347c69daff10ded9edc56df9e67f756 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 1 Jul 2015 14:32:23 +0200 Subject: [PATCH] Fixed regex for quotes --- wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js | 3 ++- 1 file changed, 2 insertions(+), 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 ee446b238a..77219f87f0 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -1247,7 +1247,8 @@ RedactorPlugins.wbbcode = function() { var self = this; var $transformQuote = function(quote) { - return quote.replace(/\[quote(=['"].+?\1)?\]([\S\s]*)\[\/quote\]/gi, function(match, attributes, innerContent) { + console.debug(quote); + return quote.replace(/\[quote(=(['"]).+?\2)?\]([\S\s]*)\[\/quote\]/gi, function(match, attributes, quotationMark, innerContent) { var $author = ''; var $link = ''; -- 2.20.1