From: Alexander Ebert Date: Sat, 7 Mar 2015 15:12:33 +0000 (+0100) Subject: Fixed index check X-Git-Tag: 2.1.2~81 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ae15d0dac9277ee08849d9cb300dbdeabe6aaca9;p=GitHub%2FWoltLab%2FWCF.git Fixed index check --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js index 4bf601b640..a69c7a8f02 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -445,7 +445,7 @@ RedactorPlugins.wbbcode = function() { // [sub] html = html.replace(//gi, function() { - if ($searchFor.indexOf('b') === -1) $searchFor.push('sub'); + if ($searchFor.indexOf('sub') === -1) $searchFor.push('sub'); return '[sub]'; });