(s: string)
| 68 | } |
| 69 | |
| 70 | export function countLines(s: string): number { |
| 71 | if (s === '') return 0; |
| 72 | return s.split('\n').length; |
| 73 | } |
| 74 | |
| 75 | /** Short, human label for a pasted blob, e.g. "Pasted 42 lines (1.2 KB)". */ |
| 76 | export function pasteLabel(s: string): string { |
no outgoing calls
no test coverage detected