MCPcopy Index your code
hub / github.com/darkreader/darkreader / removeCSSComments

Function removeCSSComments

src/utils/css-text/css-text.ts:3–5  ·  view source on GitHub ↗
(cssText: string)

Source from the content-addressed store, hash-verified

1const cssCommentsRegex = /\/\*[\s\S]*?\*\//g;
2
3export function removeCSSComments(cssText: string): string {
4 return cssText.replace(cssCommentsRegex, '');
5}

Callers 3

parseCSSFunction · 0.90
containsCSSImportFunction · 0.90
replaceCSSImportsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected