()
| 40 | let i = 0; |
| 41 | |
| 42 | const readWord = (): string => { |
| 43 | const start = i; |
| 44 | while (i < len && WORD_RE.test(header[i]!)) i += 1; |
| 45 | return header.slice(start, i); |
| 46 | }; |
| 47 | // Returns null on an unterminated quote or a quote run into the next token. |
| 48 | const readQuoted = (): string | null => { |
| 49 | let value = ""; |