1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-06 09:19:22 +02:00

Desktop: Fix bug with quotes when searching (#3735)

This commit is contained in:
Naveen M V
2020-09-11 10:30:57 +00:00
committed by GitHub
parent 5f410e80e6
commit 4b377589aa
3 changed files with 9 additions and 2 deletions

View File

@@ -82,7 +82,7 @@ const parseQuery = (query: string): Term[] => {
}
if (name === 'tag' || name === 'notebook' || name === 'resource' || name === 'sourceurl') {
result.push({ name, value: value.replace(/[*]/g, '%'), negated }); // for wildcard search
result.push({ name, value: trimQuotes(value.replace(/[*]/g, '%')), negated }); // for wildcard search
} else if (name === 'title' || name === 'body') {
// Trim quotes since we don't support phrase query here
// eg. Split title:"hello world" to title:hello title:world