Skip to content

Commit

Permalink
Fix windows search empty paths - more accurate string comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Phoenix- committed Aug 7, 2023
1 parent b808ad0 commit 19e769f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ private static async IAsyncEnumerable<SearchResult> ExecuteWindowsIndexSearchAsy
.GetString(1)
.Replace("#", "%23", StringComparison.OrdinalIgnoreCase);

if (encodedFragmentPath == "file:")
if (string.Compare(encodedFragmentPath, "file:", StringComparison.OrdinalIgnoreCase) == 0)
continue;

var path = new Uri(encodedFragmentPath).LocalPath;
Expand Down

0 comments on commit 19e769f

Please sign in to comment.