Fixed index check
authorAlexander Ebert <ebert@woltlab.com>
Sat, 7 Mar 2015 15:12:33 +0000 (16:12 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 7 Mar 2015 15:12:33 +0000 (16:12 +0100)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js

index 4bf601b640de2c7278074d38efe11c451e6a5297..a69c7a8f029194877d4173d5616787265aef1f92 100644 (file)
@@ -445,7 +445,7 @@ RedactorPlugins.wbbcode = function() {
                        
                        // [sub]
                        html = html.replace(/<sub>/gi, function() {
-                               if ($searchFor.indexOf('b') === -1) $searchFor.push('sub');
+                               if ($searchFor.indexOf('sub') === -1) $searchFor.push('sub');
                                
                                return '[sub]';
                        });