(row: string)
| 73 | } |
| 74 | |
| 75 | function 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 | |
| 83 | function check(file: string): Issue[] { |
| 84 | const src = readFileSync(path.join(ROOT, file), 'utf8'); |