From 903a96061ad743a9701bc4c70b79bdf639cca49d Mon Sep 17 00:00:00 2001 From: n Date: Sat, 5 Aug 2023 22:43:48 +0200 Subject: [PATCH] fix dash recognition in instances names (#1) --- clickat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clickat.php b/clickat.php index 0eabeb7..4639caf 100644 --- a/clickat.php +++ b/clickat.php @@ -13,7 +13,7 @@ function hook_clickat_render_linklist($data) { foreach ($data['links'] as &$value) { - $value['description'] = preg_replace('/\ @([\w\d]+)@([\w\d_\.]+)/',' @\1',$value['description']); + $value['description'] = preg_replace('/\ @([\w\d]+)@([\w\d_\-\.]+)/',' @\1',$value['description']); $value['description'] = preg_replace('/\ @([\w\d]+)/',' @\1',$value['description']); } return $data; -- 2.40.1