fix dash recognition in instances names (#1) #2

Merged
n merged 1 commits from fix_dash into main 2023-08-05 22:45:58 +02:00
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;