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
|
public static function fetchShareAttributes(string $text): array
|
||||||
{
|
{
|
||||||
DI::profiler()->startRecording('rendering');
|
DI::profiler()->startRecording('rendering');
|
||||||
if (preg_match('#(.*?)\[share](.*)\[/share]#', $text, $matches)) {
|
if (preg_match('~(.*?)\[share](.*)\[/share]~ism', $text, $matches)) {
|
||||||
return [
|
return [
|
||||||
'author' => '',
|
'author' => '',
|
||||||
'profile' => '',
|
'profile' => '',
|
||||||
|
|
Loading…
Reference in a new issue