fix dash recognition in instances names (#1) #2
1 changed files with 1 additions and 1 deletions
|
@ -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">@\1</a>',$value['description']);
|
||||
$value['description'] = preg_replace('/\ @([\w\d]+)@([\w\d_\-\.]+)/',' <a href="https://\2/@\1">@\1</a>',$value['description']);
|
||||
$value['description'] = preg_replace('/\ @([\w\d]+)/',' <a href="https://twitter.com/\1">@\1</a>',$value['description']);
|
||||
}
|
||||
return $data;
|
||||
|
|
Loading…
Reference in a new issue