mirror of
https://github.com/friendica/friendica
synced 2024-11-18 18:23:40 +00:00
Harmonized regular expression
This commit is contained in:
parent
21bd2a8396
commit
f340fc6efa
1 changed files with 1 additions and 1 deletions
|
@ -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