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}");