(str: string)
| 1 | |
| 2 | export function trimNewlines(str: string): string { |
| 3 | return str.replace(/^\n+|\n+$/g, '') |
| 4 | } |
| 5 | |
| 6 | export function sanitizePreview(text: string): string { |
| 7 | return text.replace(/[#*_`~\[\]()]/g, '').trim() |
no outgoing calls
no test coverage detected