MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / maskNonScannableRanges

Function maskNonScannableRanges

packages/lint/src/project.ts:330–335  ·  view source on GitHub ↗
(html: string)

Source from the content-addressed store, hash-verified

328}
329
330function maskNonScannableRanges(html: string): string {
331 let out = maskRange(html, /<!--[\s\S]*?-->/g);
332 out = maskRange(out, /<style\b[^>]*>[\s\S]*?<\/style\b[^>]*>/gi);
333 out = maskRange(out, /<script\b[^>]*>[\s\S]*?<\/script\b[^>]*>/gi);
334 return out;
335}
336
337// fallow-ignore-next-line complexity
338function lintMissingLocalAsset(

Callers 2

lintMissingLocalAssetFunction · 0.85
walkFunction · 0.85

Calls 1

maskRangeFunction · 0.85

Tested by

no test coverage detected