From cf2b3c22e4616a097ae011751d548c858efdfbcc Mon Sep 17 00:00:00 2001 From: Rhys Arkins Date: Thu, 26 Sep 2024 13:09:20 +0200 Subject: [PATCH] fix(vulnerabilities): correct range syntax for nuget (#31623) --- lib/workers/repository/init/vulnerability.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/workers/repository/init/vulnerability.ts b/lib/workers/repository/init/vulnerability.ts index 7f7dab37d7908d..4b6b801589362d 100644 --- a/lib/workers/repository/init/vulnerability.ts +++ b/lib/workers/repository/init/vulnerability.ts @@ -185,7 +185,10 @@ export async function detectVulnerabilityAlerts( }; let matchCurrentVersion = `< ${val.firstPatchedVersion}`; - if (datasource === MavenDatasource.id) { + if ( + datasource === MavenDatasource.id || + datasource === NugetDatasource.id + ) { matchCurrentVersion = `(,${val.firstPatchedVersion})`; }