Fix exclude path check for index search

This commit is contained in:
VictoriousRaptor 2023-09-09 01:49:18 +08:00
parent 910c5f2797
commit ec58939e55
2 changed files with 2 additions and 2 deletions

View file

@ -263,7 +263,7 @@ namespace Flow.Launcher.Plugin.SharedCommands
}
/// <summary>
/// Returns if <paramref name="parentPath"/> contains <paramref name="subPath"/>.
/// Returns if <paramref name="parentPath"/> contains <paramref name="subPath"/>. Equal paths are not considered to be contained by default.
/// From https://stackoverflow.com/a/66877016
/// </summary>
/// <param name="parentPath">Parent path</param>

View file

@ -123,7 +123,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search
}
results.RemoveWhere(r => Settings.IndexSearchExcludedSubdirectoryPaths.Any(
excludedPath => FilesFolders.PathContains(excludedPath.Path, r.SubTitle)));
excludedPath => FilesFolders.PathContains(excludedPath.Path, r.SubTitle, true)));
return results.ToList();
}