(input: string)
| 516 | } |
| 517 | |
| 518 | const parseScalar = (input: string): unknown => { |
| 519 | const value = trimWhite(input) |
| 520 | if (value.length === 0) return null |
| 521 | if (value.startsWith("\"") && value.endsWith("\"")) { |
| 522 | return parseDoubleQuoted(value) |
| 523 | } |
| 524 | if (value.startsWith("'") && value.endsWith("'")) { |
| 525 | return value.slice(1, -1).replace(/''/g, "'") |
| 526 | } |
| 527 | return resolvePlain(value) |
| 528 | } |
| 529 | |
| 530 | const parseKey = (input: string): string => { |
| 531 | const value = parseScalar(input) |
no test coverage detected