Skip to content

Commit 5e44946

Browse files
committed
addres PR feedback about comments and debug message
1 parent 323c229 commit 5e44946

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/code/LocalServerApiCalls.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,10 @@ private FindResults FindNameHelper(string packageName, string[] tags, bool inclu
259259
String latestVersionPath = String.Empty;
260260
string actualPkgName = packageName;
261261

262+
// this regex pattern matches packageName followed by a version (4 digit or 3 with prerelease word)
262263
string regexPattern = $"{packageName}" + @".\d+\.\d+\.\d+(?:-\w+|.\d)*.nupkg";
263264
Regex rx = new Regex(regexPattern, RegexOptions.Compiled | RegexOptions.IgnoreCase);
264-
265-
_cmdletPassedIn.WriteDebug($"pattern is: {regexPattern}");
265+
_cmdletPassedIn.WriteDebug($"package file name pattern to be searched for is: {regexPattern}");
266266

267267
foreach (string path in Directory.GetFiles(Repository.Uri.LocalPath))
268268
{

0 commit comments

Comments
 (0)