(value: string)
| 144 | } |
| 145 | |
| 146 | function unquote(value: string): string { |
| 147 | const trimmed = value.trim(); |
| 148 | if (trimmed.length >= 2 && trimmed.startsWith('"') && trimmed.endsWith('"')) { |
| 149 | return splitCells(trimmed)[0] ?? ''; |
| 150 | } |
| 151 | return trimmed; |
| 152 | } |
| 153 | |
| 154 | function readColumns(raw: string): string[] { |
| 155 | const columns = raw.trim().split(/\s+/).filter((c) => c.length > 0); |
no test coverage detected