From 7bcdfba44bc7cd4abf6b2a17ae47a24f73088e1f Mon Sep 17 00:00:00 2001 From: "Kevin Ransom (msft)" Date: Mon, 8 Apr 2024 06:11:06 -0700 Subject: [PATCH] Fix 16071 --- FSharp.DependencyManager.Nuget ignoring sources (#16991) * Fix 16071 * tweaks * Automated command ran: fantomas Co-authored-by: KevinRansom <5175830+KevinRansom@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Petr --- .../FSharp.DependencyManager.Utilities.fs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Utilities.fs b/src/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Utilities.fs index 875ccec4dd2..3cbac354977 100644 --- a/src/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Utilities.fs +++ b/src/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Utilities.fs @@ -320,10 +320,9 @@ module internal Utilities = // https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5/nuget/v3/index.json // Use enabled feeds only (see NuGet.Commands.ListSourceRunner.Run) and strip off the flags. let pattern = - @"(\s*\d+\.+\s*)(?'name'\S*)(\s*)\[(?'enabled'Enabled|Disabled)\](\s*)$(\s*)(?'uri'\S*)" + @"(\s*\d+\.+\s*)(?'name'\S*)(\s*)\[(?'enabled'Enabled|Disabled)\](\s*)(?'uri'[^\0\r\n]*)" - let regex = - new Regex(pattern, RegexOptions.Multiline ||| RegexOptions.ExplicitCapture) + let regex = new Regex(pattern, RegexOptions.ExplicitCapture) let sourcelist = String.concat Environment.NewLine stdOut