From ae15d0dac9277ee08849d9cb300dbdeabe6aaca9 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 7 Mar 2015 16:12:33 +0100 Subject: [PATCH] Fixed index check --- wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js | 2 +- 1 file changed, 1 insertion(+), 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 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]'; }); -- 2.20.1