(text: string)
| 8 | const LF = 10; |
| 9 | |
| 10 | export function computeLineCount(text: string): number { |
| 11 | let count = 1; |
| 12 | for (let i = 0; i < text.length; i++) { |
| 13 | if (text.charCodeAt(i) === LF) |
| 14 | count++; |
| 15 | } |
| 16 | return count; |
| 17 | } |
| 18 | |
| 19 | export const LINE_NUMBERS_ROWS_CLASS = 'mu-line-numbers-rows'; |
| 20 |
no outgoing calls
no test coverage detected