Fixed regex for quotes
authorAlexander Ebert <ebert@woltlab.com>
Wed, 1 Jul 2015 12:32:23 +0000 (14:32 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 1 Jul 2015 12:32:23 +0000 (14:32 +0200)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js

index ee446b238a00e54477e70dd6c718790818675c7e..77219f87f085b5f9f3cc75ee7c344bb78be9e231 100644 (file)
@@ -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 = '';