(lines, startIndex)
| 37 | } |
| 38 | |
| 39 | function nextMeaningfulIndex(lines, startIndex) { |
| 40 | for (let index = startIndex; index < lines.length; index += 1) { |
| 41 | const trimmed = lines[index].trim(); |
| 42 | if (!trimmed || trimmed.startsWith("#")) { |
| 43 | continue; |
| 44 | } |
| 45 | return index; |
| 46 | } |
| 47 | return -1; |
| 48 | } |
| 49 | |
| 50 | function parseBlockScalarHeader(rawValue) { |
| 51 | const value = rawValue.trim(); |