mirror of
https://github.com/kevachat/webapp.git
synced 2025-01-22 20:44:59 +00:00
check string not converted before to link by "/" prefix
This commit is contained in:
parent
3fb22ad7aa
commit
3990d570e1
@ -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
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user