mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-03-31 17:15:38 +00:00
fix links regex condition
This commit is contained in:
parent
8aff756e30
commit
2afaf2f618
1 changed files with 1 additions and 1 deletions
|
|
@ -154,7 +154,7 @@ class AppExtension extends AbstractExtension
|
|||
): string
|
||||
{
|
||||
return preg_replace(
|
||||
'~(https?://(?:www\.)?[^\s]+)~i',
|
||||
'~(https?://(?:www\.)?[^\(\s\)]+)~i',
|
||||
'[$1]($1)',
|
||||
$text
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue