(text: string)
| 218 | } |
| 219 | |
| 220 | function preview(text: string) { |
| 221 | if (text.length <= MAX_METADATA_LENGTH) return text |
| 222 | return "...\n\n" + text.slice(-MAX_METADATA_LENGTH) |
| 223 | } |
| 224 | |
| 225 | function tail(text: string, maxLines: number, maxBytes: number) { |
| 226 | const lines = text.split("\n") |