Skip to content

Commit

Permalink
Improvement - Make user keyword case-insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
Madery Romain committed Aug 26, 2024
1 parent 61884d6 commit 5186dd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public List<Result> Query(Query query)
string arg = query.SecondSearch?.Trim();

var filteredItems = settingsItems
.Where(item => keyword.StartsWith(item.Keyword.Trim()) && (string.IsNullOrEmpty(arg) || item.Title.Contains(arg, StringComparison.OrdinalIgnoreCase)));
.Where(item => keyword.StartsWith(item.Keyword.Trim(), StringComparison.OrdinalIgnoreCase) && (string.IsNullOrEmpty(arg) || item.Title.Contains(arg, StringComparison.OrdinalIgnoreCase)));

foreach (var item in filteredItems)
{
Expand Down

0 comments on commit 5186dd5

Please sign in to comment.