👁️
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

dont trim before parsing

+3 -4
+3 -4
src/workers/cards.worker.ts
··· 545 545 throw new Error("Worker not initialized - call initialize() first"); 546 546 } 547 547 548 - const trimmed = query.trim(); 549 - if (!trimmed) { 548 + if (!query.trim()) { 550 549 return { 551 550 mode: "fuzzy", 552 551 cards: [], ··· 556 555 }; 557 556 } 558 557 559 - const cacheKey = JSON.stringify({ query: trimmed, restrictions, sort }); 558 + const cacheKey = JSON.stringify({ query, restrictions, sort }); 560 559 const cached = await this.searchCache.getOrSet(cacheKey, async () => 561 - this.executeFullUnifiedSearch(trimmed, restrictions, sort), 560 + this.executeFullUnifiedSearch(query, restrictions, sort), 562 561 ); 563 562 564 563 return {