MCPcopy Create free account
hub / github.com/enowdev/enowX-Coder / isSeparatorRow

Function isSeparatorRow

src/lib/utils.ts:157–160  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

155}
156
157function isSeparatorRow(line: string): boolean {
158 if (!line) return false;
159 return /^\|[\s\-:|]+\|$/.test(line.trim());
160}
161
162function countColumns(row: string): number {
163 const cells = row.split('|').slice(1, -1); // remove first/last empty from split

Callers 2

fixMarkdownTablesFunction · 0.85
isTableRowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected