Skip to content

Commit

Permalink
Merge pull request #24 from Geta/feature/22-search-is-case-sensitive
Browse files Browse the repository at this point in the history
Search is case sensitive
  • Loading branch information
marisks authored Oct 6, 2023
2 parents 8c1a076 + 41b5a07 commit db95221
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private void Load()
private IEnumerable<Tag> FindTags()
{
var allTags = _tagRepository.GetAllTags().ToList();
return HasQuery ? allTags.Where(x => x.Name.Contains(Query)) : allTags;
return HasQuery ? allTags.Where(x => x.Name.Contains(Query, StringComparison.InvariantCultureIgnoreCase)) : allTags;
}

private void EditTagsInContentRepository(Tag tagFromTagRepository, TagEditModel tagFromUser)
Expand Down

0 comments on commit db95221

Please sign in to comment.