fix links regex condition

This commit is contained in:
ghost 2023-11-19 19:24:23 +02:00
parent 8aff756e30
commit 2afaf2f618

View File

@ -154,7 +154,7 @@ class AppExtension extends AbstractExtension
): string ): string
{ {
return preg_replace( return preg_replace(
'~(https?://(?:www\.)?[^\s]+)~i', '~(https?://(?:www\.)?[^\(\s\)]+)~i',
'[$1]($1)', '[$1]($1)',
$text $text
); );