diff --git a/src/Twig/AppExtension.php b/src/Twig/AppExtension.php index 107fd68..de06ad8 100644 --- a/src/Twig/AppExtension.php +++ b/src/Twig/AppExtension.php @@ -185,8 +185,9 @@ class AppExtension extends AbstractExtension string $text ): string { + // check string not converted before to link by "/" prefix return preg_replace( - '~(N[A-z0-9]{33})~i', + '~[^/](N[A-z0-9]{33})~i', '[$1]($1#latest)', $text );