fix dash recognition in instances names (#1)

This commit is contained in:
n 2023-08-05 22:43:48 +02:00
parent 4b2ff77f50
commit 903a96061a
Signed by: n
GPG Key ID: 510227DD6C502CE3
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ function hook_clickat_render_linklist($data)
{
foreach ($data['links'] as &$value) {
$value['description'] = preg_replace('/\ @([\w\d]+)@([\w\d_\.]+)/',' <a href="https://\2/@\1">&commat;\1</a>',$value['description']);
$value['description'] = preg_replace('/\ @([\w\d]+)@([\w\d_\-\.]+)/',' <a href="https://\2/@\1">&commat;\1</a>',$value['description']);
$value['description'] = preg_replace('/\ @([\w\d]+)/',' <a href="https://twitter.com/\1">&commat;\1</a>',$value['description']);
}
return $data;