diff --git a/ext/bbcode/main.php b/ext/bbcode/main.php index 8b613af7..cfa240b9 100644 --- a/ext/bbcode/main.php +++ b/ext/bbcode/main.php @@ -33,7 +33,7 @@ class BBCode extends FormatterExtension { ) as $el) { $text = preg_replace("!\[$el\](.*?)\[/$el\]!s", "<$el>$1$el>", $text); } - $text = preg_replace('!>>([^\d].+)!', '
$1', $text); + $text = preg_replace('!^>>([^\d].+)!', '
$1', $text); $text = preg_replace('!>>(\d+)(#c?\d+)?!s', '>>$1$2', $text); $text = preg_replace('!\[url=site://(.*?)(#c\d+)?\](.*?)\[/url\]!s', '$3', $text); $text = preg_replace('!\[url\]site://(.*?)(#c\d+)?\[/url\]!s', '$1$2', $text);