MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / matchesQuery

Function matchesQuery

packages/app-core/src/components/HelpView.tsx:175–178  ·  view source on GitHub ↗
(query: string, ...parts: Array<string | undefined>)

Source from the content-addressed store, hash-verified

173}
174
175function matchesQuery(query: string, ...parts: Array<string | undefined>): boolean {
176 if (!query) return true
177 return parts.some((part) => part?.toLowerCase().includes(query))
178}
179
180export function HelpView(): JSX.Element {
181 const closeActiveNote = useStore((s) => s.closeActiveNote)

Callers 1

HelpViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected