`[a.b]` / `[[a.b]]` (already known to be a header line) → its decoded path.
(text: string)
| 427 | |
| 428 | /** `[a.b]` / `[[a.b]]` (already known to be a header line) → its decoded path. */ |
| 429 | function parseTableHeader(text: string): { array: boolean; path: string[] | null } { |
| 430 | let i = skipWs(text, 0) + 1; |
| 431 | const array = text[i] === '['; |
| 432 | if (array) i++; |
| 433 | const key = parseDottedKey(text, skipWs(text, i)); |
| 434 | return { array, path: key ? key.path : null }; |
| 435 | } |
| 436 | |
| 437 | /** `key = …` at the start of a line → the key's decoded path. */ |
| 438 | function parseKeyValueStart(text: string): { path: string[] | null; inlineTable: boolean } | null { |
no test coverage detected