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
|
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…
x
Reference in New Issue
Block a user