From: Alexander Ebert Date: Wed, 1 Jul 2015 12:32:23 +0000 (+0200) Subject: Fixed regex for quotes X-Git-Tag: 2.1.6~28 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=474d6c549347c69daff10ded9edc56df9e67f756;p=GitHub%2FWoltLab%2FWCF.git Fixed regex for quotes --- 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 = '';