diff --git a/src/Twig/AppExtension.php b/src/Twig/AppExtension.php index 8da3975..440ca6c 100644 --- a/src/Twig/AppExtension.php +++ b/src/Twig/AppExtension.php @@ -154,7 +154,7 @@ class AppExtension extends AbstractExtension ): string { return preg_replace( - '~(https?://(?:www\.)?[^\s]+)~i', + '~(https?://(?:www\.)?[^\(\s\)]+)~i', '[$1]($1)', $text );