(str: string)
| 20 | } |
| 21 | |
| 22 | export function formatParagraph(str: string): string { |
| 23 | return str |
| 24 | .match(/.{1,80}(\s|$)/g)! |
| 25 | .map((line) => line.trim()) |
| 26 | .join('\n'); |
| 27 | } |
| 28 | |
| 29 | export function formatHeader(title: string): string { |
| 30 | return '' + '\n ' + title.toUpperCase() + '\n ────────────────────────────────────────────'; |
no test coverage detected