(src: string, pattern: RegExp)
| 324 | } |
| 325 | |
| 326 | function maskRange(src: string, pattern: RegExp): string { |
| 327 | return src.replace(pattern, (m) => " ".repeat(m.length)); |
| 328 | } |
| 329 | |
| 330 | function maskNonScannableRanges(html: string): string { |
| 331 | let out = maskRange(html, /<!--[\s\S]*?-->/g); |
no outgoing calls
no test coverage detected