Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
1
const
cssCommentsRegex = /\/\*[\s\S]*?\*\
//g;
2
3
export
function
removeCSSComments(cssText: string): string {
4
return
cssText.replace(cssCommentsRegex,
''
);
5
}
Callers
3
parseCSS
Function · 0.90
containsCSSImport
Function · 0.90
replaceCSSImports
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected