From 875118618c0a72847cf86ad66a04cc8ff05074ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erv=C4=ABns?= Date: Fri, 6 Oct 2023 09:07:18 +0300 Subject: [PATCH] Added toLowerInvariant in search action --- .../Areas/GetaOptimizelyTags/Pages/Index.cshtml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Geta.Optimizely.Tags/Areas/GetaOptimizelyTags/Pages/Index.cshtml.cs b/src/Geta.Optimizely.Tags/Areas/GetaOptimizelyTags/Pages/Index.cshtml.cs index 0bfb21c..0c15c52 100644 --- a/src/Geta.Optimizely.Tags/Areas/GetaOptimizelyTags/Pages/Index.cshtml.cs +++ b/src/Geta.Optimizely.Tags/Areas/GetaOptimizelyTags/Pages/Index.cshtml.cs @@ -110,7 +110,7 @@ private void Load() private IEnumerable FindTags() { var allTags = _tagRepository.GetAllTags().ToList(); - return HasQuery ? allTags.Where(x => x.Name.Contains(Query)) : allTags; + return HasQuery ? allTags.Where(x => x.Name.ToLowerInvariant().Contains(Query.ToLowerInvariant())) : allTags; } private void EditTagsInContentRepository(Tag tagFromTagRepository, TagEditModel tagFromUser)