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

Function cardText

src/scripts/hub.ts:11–18  ·  view source on GitHub ↗
(card: HTMLElement)

Source from the content-addressed store, hash-verified

9const activeTags = new Set<string>()
10
11function cardText(card: HTMLElement) {
12 return [
13 card.dataset.title,
14 card.dataset.description,
15 card.dataset.repository,
16 card.dataset.tags
17 ].join(' ')
18}
19
20function matchesSearch(card: HTMLElement, query: string) {
21 if (!query) return true

Callers 1

matchesSearchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected