(chunk: string)
| 478 | let size = 0; |
| 479 | |
| 480 | const push = (chunk: string): boolean => { |
| 481 | size += chunk.length; |
| 482 | if (size > ARTIFACT_PREVIEW_MARKUP_LIMIT) return false; |
| 483 | output.push(chunk); |
| 484 | return true; |
| 485 | }; |
| 486 | |
| 487 | while (index < markup.length) { |
| 488 | const next = markup.indexOf("<", index); |
no test coverage detected