mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-24 08:12:24 +02:00
All: Allow lowercase filters when doing search
This commit is contained in:
parent
918b768634
commit
872d2942b4
@ -8,8 +8,8 @@ interface Term {
|
||||
}
|
||||
|
||||
const makeTerm = (name: string, value: string): Term => {
|
||||
if (name.startsWith('-')) { return { name: name.slice(1), value: value, negated: true }; }
|
||||
return { name: name, value: value, negated: false };
|
||||
if (name.startsWith('-')) { return { name: name.slice(1).toLowerCase(), value: value, negated: true }; }
|
||||
return { name: name.toLowerCase(), value: value, negated: false };
|
||||
};
|
||||
|
||||
const quoted = (s: string) => s.startsWith('"') && s.endsWith('"');
|
||||
|
Loading…
Reference in New Issue
Block a user