From 98c6809d9299bd6bde4b0bf540d25d5e5ce3b17e Mon Sep 17 00:00:00 2001 From: Anam Navied Date: Mon, 21 Oct 2024 18:07:58 -0400 Subject: [PATCH] add comment --- src/code/LocalServerApiCalls.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/code/LocalServerApiCalls.cs b/src/code/LocalServerApiCalls.cs index be1f330bc..b22b3efb6 100644 --- a/src/code/LocalServerApiCalls.cs +++ b/src/code/LocalServerApiCalls.cs @@ -387,6 +387,7 @@ private FindResults FindVersionHelper(string packageName, string version, string return findResponse; } + // this regex pattern matches packageName followed by the requested version string regexPattern = $"{packageName}.{requiredVersion.ToNormalizedString()}" + @".nupkg"; Regex rx = new Regex(regexPattern, RegexOptions.Compiled | RegexOptions.IgnoreCase); _cmdletPassedIn.WriteDebug($"pattern is: {regexPattern}");