(raw: string)
| 152 | } |
| 153 | |
| 154 | function readColumns(raw: string): string[] { |
| 155 | const columns = raw.trim().split(/\s+/).filter((c) => c.length > 0); |
| 156 | if (columns.length === 0) { |
| 157 | throw new Error('kompakter Kopf nennt keine Spalten'); |
| 158 | } |
| 159 | return columns; |
| 160 | } |
| 161 | |
| 162 | function collectRows( |
| 163 | lines: string[], |
no outgoing calls
no test coverage detected