MCPcopy Index your code
hub / github.com/FirefoxCSS-Store/FirefoxCSS-Store.github.io / matchesSearch

Function matchesSearch

src/scripts/hub.ts:20–23  ·  view source on GitHub ↗
(card: HTMLElement, query: string)

Source from the content-addressed store, hash-verified

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

Callers 1

renderFunction · 0.85

Calls 1

cardTextFunction · 0.85

Tested by

no test coverage detected