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

Function isSeparatorCell

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

Source from the content-addressed store, hash-verified

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());
80const isSeparatorCell = (cell: string) => /^:?-{3,}:?$/.test(cell.trim());
81

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected