Harmonized regular expression
This commit is contained in:
parent
21bd2a8396
commit
f340fc6efa
|
@ -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' => '',
|
||||
|
|
Loading…
Reference in a new issue