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

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

Callers 1

splitAnalysisBlocksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected