(card: HTMLElement, query: string)
| 18 | } |
| 19 | |
| 20 | function matchesSearch(card: HTMLElement, query: string) { |
| 21 | if (!query) return true |
| 22 | return cardText(card).includes(query) |
| 23 | } |
| 24 | |
| 25 | function matchesTags(card: HTMLElement) { |
| 26 | if (activeTags.size === 0) return true |