]> git.mxchange.org Git - friendica.git/commitdiff
Harmonized regular expression
authorMichael <heluecht@pirati.ca>
Fri, 7 Oct 2022 08:00:09 +0000 (08:00 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 7 Oct 2022 08:00:09 +0000 (08:00 +0000)
src/Content/Text/BBCode.php

index bef48dcac8971350af7f0c2b18fc78633cbd5fa8..93d1be2c445b4c4a2430de484b42afec0fc12bf2 100644 (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'    => '',