diff --git a/src/search/query.ts b/src/search/query.ts index 065df00..5af9ec6 100644 --- a/src/search/query.ts +++ b/src/search/query.ts @@ -30,6 +30,8 @@ export class Query { if (!Array.isArray(parsed.exclude.text)) { parsed.exclude.text = [parsed.exclude.text] } + // Remove empty excluded strings + parsed.exclude.text = parsed.exclude.text.filter(o => o.length) // Make sure that all fields are string[] for (const k of keywords) {