Remove BrainfuckHighlighter remnants
authorMatthias Schmidt <gravatronics@live.com>
Fri, 24 Jun 2016 11:34:54 +0000 (13:34 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 24 Jun 2016 11:37:45 +0000 (13:37 +0200)
wcfsetup/install/files/lib/system/bbcode/CodeBBCode.class.php

index 1cafa5d83012eaa15c7f7aae4e029d103a5c78e0..c5a5e680c2b412a0258b3d4eaf2325f3cc6e6afa 100644 (file)
@@ -1,7 +1,6 @@
 <?php
 namespace wcf\system\bbcode;
 use wcf\system\bbcode\highlighter\BashHighlighter;
-use wcf\system\bbcode\highlighter\BrainfuckHighlighter;
 use wcf\system\bbcode\highlighter\CHighlighter;
 use wcf\system\bbcode\highlighter\DiffHighlighter;
 use wcf\system\bbcode\highlighter\HtmlHighlighter;
@@ -128,10 +127,6 @@ class CodeBBCode extends AbstractBBCode {
                                else if (mb_strpos($content, '\\documentclass') !== false) {
                                        $className = TexHighlighter::class;
                                }
-                               else if (Regex::compile('[-\\+\\.,\\[\\]\\>\\<]{9}')->match($content)) {
-                                       // 9 times a brainfuck char in a row -> seems to be brainfuck
-                                       $className = BrainfuckHighlighter::class;
-                               }
                        }
                }