MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / parseFlowQuery

Function parseFlowQuery

ui/src/lib/search-model.ts:50–57  ·  view source on GitHub ↗
(query: string)

Source from the content-addressed store, hash-verified

48}
49
50export function parseFlowQuery(query: string): FlowQuery | null {
51 const match = FLOW_SENTENCE.exec(query) ?? FLOW_ARROW.exec(query);
52 if (!match) return null;
53 const from = lastSegment(match[1] as string);
54 const to = lastSegment(match[2] as string);
55 if (!from || !to || from === to) return null;
56 return { from, to };
57}
58
59/* ----------------------------------------------------------------- rows -- */
60

Callers 3

runFunction · 0.90
currentFunction · 0.90

Calls 2

lastSegmentFunction · 0.70
execMethod · 0.65

Tested by

no test coverage detected