From 68fa30565587806ab26440e7f4464bb629ee47eb Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 8 Sep 2025 00:51:42 +0200 Subject: [PATCH] Better detection of duplicates --- dev/tools/apstats.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/tools/apstats.php b/dev/tools/apstats.php index 289e3f4f38b..202b7c42d7e 100755 --- a/dev/tools/apstats.php +++ b/dev/tools/apstats.php @@ -357,7 +357,7 @@ foreach ($output_arrglpu as $valgitlog) { // The most recent lines are first. } if ($arrayofalerts[$alreadyfoundcommitid]['title'] != $tmpval['title']) { // Concat label of the new line to the already found one (if it differs) - $arrayofalerts[$alreadyfoundcommitid]['title'] .= ', '.$tmpval['title']; + $arrayofalerts[$alreadyfoundcommitid]['title'] .= ', '.preg_replace('/\.$/', '', $tmpval['title']); } $arrayofalerts[$alreadyfoundcommitid]['branch'] = array_merge($arrayofalerts[$alreadyfoundcommitid]['branch'], $tmpval['branch']); @@ -1137,7 +1137,7 @@ function cleanVal2($val) $tmpval['issueid'] = ''; $tmpval['issueidyogosha'] = ''; $tmpval['issueidcve'] = ''; - $tmpval['title'] = array_key_exists(5, $tmp) ? $tmp[5] : ''; + $tmpval['title'] = array_key_exists(5, $tmp) ? preg_replace('/\.$/', '', $tmp[5]) : ''; $tmpval['created_at'] = array_key_exists(0, $tmp) ? $tmp[0] : ''; $tmpval['updated_at'] = '';