From 0f7bdeec88ac4f2304d54ee095607e897d01b753 Mon Sep 17 00:00:00 2001 From: Lasith Manujitha <64279853+z1nc0r3@users.noreply.github.com> Date: Wed, 17 Jul 2024 11:32:09 +0530 Subject: [PATCH] Using a case-insensitive comparison Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs index 41a98b929..8fd167476 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs @@ -258,7 +258,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search string[] excludedFileTypes = Settings.ExcludedFileTypes.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries); string fileExtension = Path.GetExtension(result.FullPath).TrimStart('.'); - return excludedFileTypes.Contains(fileExtension); + return excludedFileTypes.Contains(fileExtension, StringComparer.OrdinalIgnoreCase); } } }