MCPcopy Create free account
hub / github.com/Thanas-R/Virdis / isTableRow

Function isTableRow

src/components/FieldDetailView.tsx:76–76  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

74type AnalysisBlock =
75 | { type: "markdown"; content: string }
76 | { type: "table"; rows: string[][] };
77
78const isTableRow = (line: string) => /^\s*\|.*\|\s*$/.test(line);
79const parseTableRow = (line: string) => line.trim().replace(/^\|/, "").replace(/\|$/, "").split("|").map((cell) => cell.trim());

Callers 1

splitAnalysisBlocksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected