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

Function parseTableRow

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

Source from the content-addressed store, hash-verified

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
80function splitAnalysisBlocks(rawText: string): AnalysisBlock[] {

Callers 1

splitAnalysisBlocksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected