1
0
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:
Laurent Cozic 2020-11-13 22:29:28 +00:00
parent 918b768634
commit 872d2942b4

View File

@ -8,8 +8,8 @@ interface Term {
} }
const makeTerm = (name: string, value: string): Term => { const makeTerm = (name: string, value: string): Term => {
if (name.startsWith('-')) { return { name: name.slice(1), value: value, negated: true }; } if (name.startsWith('-')) { return { name: name.slice(1).toLowerCase(), value: value, negated: true }; }
return { name: name, value: value, negated: false }; return { name: name.toLowerCase(), value: value, negated: false };
}; };
const quoted = (s: string) => s.startsWith('"') && s.endsWith('"'); const quoted = (s: string) => s.startsWith('"') && s.endsWith('"');