Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
anamnavi authored and adityapatwardhan committed Oct 22, 2024
1 parent 9cdc095 commit 98c6809
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/code/LocalServerApiCalls.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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}");
Expand Down

0 comments on commit 98c6809

Please sign in to comment.