mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-10 14:06:30 +00:00
Fix
This commit is contained in:
parent
d18ebbf5a6
commit
5e638438c7
2 changed files with 12 additions and 3 deletions
|
@ -129,6 +129,12 @@ exports[`modules/manager/nuget/extract extractPackageFile() extracts all depende
|
||||||
"depName": "Microsoft.AspNetCore.Hosting",
|
"depName": "Microsoft.AspNetCore.Hosting",
|
||||||
"depType": "nuget",
|
"depType": "nuget",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"datasource": "nuget",
|
||||||
|
"depName": "Autofac.Extensions.DependencyInjection",
|
||||||
|
"depType": "nuget",
|
||||||
|
"skipReason": "invalid-version",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"currentValue": "4.5.0",
|
"currentValue": "4.5.0",
|
||||||
"datasource": "nuget",
|
"datasource": "nuget",
|
||||||
|
|
|
@ -82,9 +82,8 @@ function extractDepsFromXml(xmlNode: XmlDocument): NugetPackageDependency[] {
|
||||||
|
|
||||||
let groupName: string | undefined;
|
let groupName: string | undefined;
|
||||||
|
|
||||||
currentValue = checkVersion
|
currentValue = currentValue
|
||||||
.exec(currentValue)
|
?.trim()
|
||||||
?.groups?.currentValue?.trim()
|
|
||||||
?.replace(/^\$\((\w+)\)$/, (match, key) => {
|
?.replace(/^\$\((\w+)\)$/, (match, key) => {
|
||||||
const val = vars.get(key);
|
const val = vars.get(key);
|
||||||
if (val) {
|
if (val) {
|
||||||
|
@ -94,6 +93,10 @@ function extractDepsFromXml(xmlNode: XmlDocument): NugetPackageDependency[] {
|
||||||
return match;
|
return match;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
currentValue = checkVersion
|
||||||
|
.exec(currentValue)
|
||||||
|
?.groups?.currentValue?.trim();
|
||||||
|
|
||||||
if (currentValue) {
|
if (currentValue) {
|
||||||
dep.currentValue = currentValue;
|
dep.currentValue = currentValue;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue