MCPcopy Create free account
hub / github.com/GCWing/BitFun / matchesQuery

Function matchesQuery

src/web-ui/src/app/components/NavPanel/NavSearchDialog.tsx:49–52  ·  view source on GitHub ↗
(query: string, ...fields: (string | undefined | null)[])

Source from the content-addressed store, hash-verified

47 resolveSessionTitle(session, (key, options) => i18nService.t(key, options));
48
49const matchesQuery = (query: string, ...fields: (string | undefined | null)[]): boolean => {
50 const q = query.toLowerCase();
51 return fields.some(f => f && f.toLowerCase().includes(q));
52};
53
54const NavSearchDialog: React.FC<NavSearchDialogProps> = ({ open, onClose }) => {
55 const { t } = useI18n('common');

Callers 1

NavSearchDialogFunction · 0.85

Calls 1

includesMethod · 0.80

Tested by

no test coverage detected