(lines)
| 14 | ]); |
| 15 | |
| 16 | function parseKeyValueLines(lines) { |
| 17 | const obj = {}; |
| 18 | for (const line of lines) { |
| 19 | const trimmed = line.trim(); |
| 20 | if (!trimmed) continue; |
| 21 | const colonIndex = trimmed.indexOf(':'); |
| 22 | if (colonIndex === -1) continue; |
| 23 | const key = trimmed.slice(0, colonIndex).trim().toLowerCase(); |
| 24 | const value = trimmed.slice(colonIndex + 1).trim(); |
| 25 | if (key && value) obj[key] = value; |
| 26 | } |
| 27 | return obj; |
| 28 | } |
| 29 | |
| 30 | function parseBulletLines(lines) { |
| 31 | return lines |