MCPcopy Create free account
hub / github.com/Noumena-Network/code / isPipeTableDelimiter

Function isPipeTableDelimiter

src/utils/markdown.ts:177–183  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

175}
176
177function isPipeTableDelimiter(line: string): boolean {
178 const cells = splitPipeCells(line)
179 if (cells.length === 0) {
180 return false
181 }
182 return cells.every(cell => /^:?-{3,}:?$/.test(cell))
183}
184
185function makePipeTableDelimiter(columnCount: number): string {
186 return `|${Array.from({ length: columnCount }, () => '---').join('|')}|`

Callers 1

Calls 1

splitPipeCellsFunction · 0.85

Tested by

no test coverage detected