Skip to content

Commit

Permalink
Fix windows search empty paths
Browse files Browse the repository at this point in the history
Fix windows search empty paths - more accurate string comparison

Fix windows search empty paths - more accurate string comparison
  • Loading branch information
Phoenix- committed Aug 7, 2023
1 parent 1f1940a commit 2c2b49c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ private static async IAsyncEnumerable<SearchResult> ExecuteWindowsIndexSearchAsy
.GetString(1)
.Replace("#", "%23", StringComparison.OrdinalIgnoreCase);

if (string.Equals(encodedFragmentPath, "file:", StringComparison.OrdinalIgnoreCase))
continue;

var path = new Uri(encodedFragmentPath).LocalPath;

yield return new SearchResult
Expand Down

0 comments on commit 2c2b49c

Please sign in to comment.