From 29fe28c359180143230edee619dffc876da7728b Mon Sep 17 00:00:00 2001 From: Michael Kriese Date: Mon, 11 May 2020 13:12:47 +0200 Subject: [PATCH] feat(manager): renovate nuget DotNetCliToolReference (#6200) --- lib/manager/nuget/__snapshots__/extract.spec.ts.snap | 6 ++++++ lib/manager/nuget/extract.ts | 5 ++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/manager/nuget/__snapshots__/extract.spec.ts.snap b/lib/manager/nuget/__snapshots__/extract.spec.ts.snap index fd536f459a..e2e788f8a2 100644 --- a/lib/manager/nuget/__snapshots__/extract.spec.ts.snap +++ b/lib/manager/nuget/__snapshots__/extract.spec.ts.snap @@ -144,6 +144,12 @@ Array [ "depName": "Range3", "depType": "nuget", }, + Object { + "currentValue": "1.0.0", + "datasource": "nuget", + "depName": "Microsoft.VisualStudio.Web.CodeGeneration.Tools", + "depType": "nuget", + }, ] `; diff --git a/lib/manager/nuget/extract.ts b/lib/manager/nuget/extract.ts index 0969cf6794..116a2c023a 100644 --- a/lib/manager/nuget/extract.ts +++ b/lib/manager/nuget/extract.ts @@ -63,6 +63,7 @@ async function determineRegistryUrls( return registryUrls; } +const packageRe = /<(?:PackageReference|DotNetCliToolReference).*Include\s*=\s*"([^"]+)".*Version\s*=\s*"(?:[[])?(?:([^"(,[\]]+)\s*(?:,\s*[)\]]|])?)"/; export async function extractPackageFile( content: string, packageFile: string, @@ -90,9 +91,7 @@ export async function extractPackageFile( * so we don't include it in the extracting regexp */ - const match = /