mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2025-01-22 04:34:17 +00:00
fix links regex condition
This commit is contained in:
parent
8aff756e30
commit
2afaf2f618
@ -154,7 +154,7 @@ class AppExtension extends AbstractExtension
|
||||
): string
|
||||
{
|
||||
return preg_replace(
|
||||
'~(https?://(?:www\.)?[^\s]+)~i',
|
||||
'~(https?://(?:www\.)?[^\(\s\)]+)~i',
|
||||
'[$1]($1)',
|
||||
$text
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user