(lines: string[])
| 246 | } |
| 247 | |
| 248 | function normalizeBlockIndent(lines: string[]): string[] { |
| 249 | const indents = lines |
| 250 | .filter((line) => line.trim() !== "") |
| 251 | .map((line) => line.match(/^[ \t]*/)![0].length); |
| 252 | |
| 253 | const trimLength = indents.length > 0 ? Math.min(...indents) : 0; |
| 254 | |
| 255 | return lines.map((line) => line.slice(trimLength)); |
| 256 | } |
| 257 | |
| 258 | function foldBlockScalar(lines: string[]): string { |
| 259 | let result = ""; |
no outgoing calls
no test coverage detected