(capture)
| 1 | const stringWidth = require('string-width'); |
| 2 | |
| 3 | function codeRegex(capture) { |
| 4 | return capture ? /\u001b\[((?:\d*;){0,5}\d*)m/g : /\u001b\[(?:\d*;){0,5}\d*m/g; |
| 5 | } |
| 6 | |
| 7 | function strlen(str) { |
| 8 | let code = codeRegex(); |
no outgoing calls
no test coverage detected
searching dependent graphs…