Skip to content

Commit 111eeb6

Browse files
dotnet-botKevinRansomgithub-actions[bot]psfinakivzarytovskii
authored
Fix 16071 --- FSharp.DependencyManager.Nuget ignoring sources (#16991) (#17003)
* Fix 16071 * tweaks * Automated command ran: fantomas Co-authored-by: KevinRansom <[email protected]> --------- Co-authored-by: Kevin Ransom (msft) <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Petr <[email protected]> Co-authored-by: Vlad Zarytovskii <[email protected]>
1 parent 9160ab7 commit 111eeb6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Utilities.fs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,10 +320,9 @@ module internal Utilities =
320320
// https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5/nuget/v3/index.json
321321
// Use enabled feeds only (see NuGet.Commands.ListSourceRunner.Run) and strip off the flags.
322322
let pattern =
323-
@"(\s*\d+\.+\s*)(?'name'\S*)(\s*)\[(?'enabled'Enabled|Disabled)\](\s*)$(\s*)(?'uri'\S*)"
323+
@"(\s*\d+\.+\s*)(?'name'\S*)(\s*)\[(?'enabled'Enabled|Disabled)\](\s*)(?'uri'[^\0\r\n]*)"
324324

325-
let regex =
326-
new Regex(pattern, RegexOptions.Multiline ||| RegexOptions.ExplicitCapture)
325+
let regex = new Regex(pattern, RegexOptions.ExplicitCapture)
327326

328327
let sourcelist = String.concat Environment.NewLine stdOut
329328

0 commit comments

Comments
 (0)