(text: string)
| 45 | // "line1\nline2\nline3" to have +2 lines, not 3 lines. We preserve that |
| 46 | // behavior here. |
| 47 | export function getPastedTextRefNumLines(text: string): number { |
| 48 | return (text.match(/\r\n|\r|\n/g) || []).length |
| 49 | } |
| 50 | |
| 51 | export function formatPastedTextRef(id: number, numLines: number): string { |
| 52 | if (numLines === 0) { |
no outgoing calls
no test coverage detected