MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / isSep

Function isSep

script/check-md-table-padding.ts:75–81  ·  view source on GitHub ↗
(row: string)

Source from the content-addressed store, hash-verified

73}
74
75function isSep(row: string) {
76 // A separator row contains only pipes, dashes, colons, and spaces, and has
77 // at least one dash.
78 if (!/\|/.test(row)) return false;
79 if (!/-/.test(row)) return false;
80 return /^[\s|:\-]+$/.test(row);
81}
82
83function check(file: string): Issue[] {
84 const src = readFileSync(path.join(ROOT, file), 'utf8');

Callers 2

checkFunction · 0.85
fixFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected