diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index bef48dcac..93d1be2c4 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -1021,7 +1021,7 @@ class BBCode public static function fetchShareAttributes(string $text): array { DI::profiler()->startRecording('rendering'); - if (preg_match('#(.*?)\[share](.*)\[/share]#', $text, $matches)) { + if (preg_match('~(.*?)\[share](.*)\[/share]~ism', $text, $matches)) { return [ 'author' => '', 'profile' => '',