case insensitive search

master v0.4
bel 2020-01-26 18:45:53 +00:00
parent 4c3a508b84
commit 05978f7fc3
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ func filterTags(tags []string) func(t *task.Task) bool {
func filterSubstr(substr string) func(t *task.Task) bool {
return func(t *task.Task) bool {
found := substr == "" || strings.Contains(fmt.Sprintf("%+v %+v", t.Title, t.Tags), substr)
found := substr == "" || strings.Contains(strings.ToLower(fmt.Sprintf("%+v %+v", t.Title, t.Tags)), strings.ToLower(substr))
return found
}
}