Skip to content

Commit

Permalink
Fix empty string for glob matcher in Non recursive searcher
Browse files Browse the repository at this point in the history
  • Loading branch information
Gs-itisitcat committed Mar 10, 2024
1 parent abe8c68 commit f386c42
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ private bool IsMatchExclude(DirectoryInfo directoryInfo)
{
return directoryInfo.FullName
.Split(Path.DirectorySeparatorChar)
.Where(p => !string.IsNullOrEmpty(p))
.Any(p => _nameMatcher.Match(p).HasMatches)
|| ExcludePaths
.Any(p => directoryInfo.FullName
Expand Down

0 comments on commit f386c42

Please sign in to comment.