From c42e8946f3765a997cf3b768c2c6cd0e3b1f0489 Mon Sep 17 00:00:00 2001 From: Rhys Arkins Date: Wed, 25 Sep 2024 22:22:40 +0200 Subject: [PATCH] fix(vulnerabilities): correct range syntax for nuget --- 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})`; }