File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11import type { Task } from '../../Task' ;
22import { Field } from './Field' ;
33import { FilterOrErrorMessage } from './Filter' ;
4+ import { TextField } from './TextField' ;
45
56/**
67 * Support the 'tag' and 'tags' search instructions.
@@ -24,15 +25,15 @@ export class TagsField extends Field {
2425 if ( filterMethod === 'include' || filterMethod === 'includes' ) {
2526 result . filter = ( task : Task ) =>
2627 task . tags . find ( ( tag ) =>
27- tag . toLowerCase ( ) . includes ( search . toLowerCase ( ) ) ,
28+ TextField . stringIncludesCaseInsensitive ( tag , search ) ,
2829 ) !== undefined ;
2930 } else if (
3031 tagMatch [ 2 ] === 'do not include' ||
3132 tagMatch [ 2 ] === 'does not include'
3233 ) {
3334 result . filter = ( task : Task ) =>
3435 task . tags . find ( ( tag ) =>
35- tag . toLowerCase ( ) . includes ( search . toLowerCase ( ) ) ,
36+ TextField . stringIncludesCaseInsensitive ( tag , search ) ,
3637 ) == undefined ;
3738 } else {
3839 result . error = 'do not understand query filter (tag/tags)' ;
You can’t perform that action at this time.
0 commit comments