Harmonized regular expression

This commit is contained in:
Michael 2022-10-07 08:00:09 +00:00
parent 21bd2a8396
commit f340fc6efa

View File

@ -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' => '',