MCPcopy Index your code
hub / github.com/coder/coder / stripCssComments

Function stripCssComments

site/src/theme/cssVariables.test.ts:67–69  ·  view source on GitHub ↗
(css: string)

Source from the content-addressed store, hash-verified

65const TRITAN_THEME_CLASSES = [".dark-tritan", ".light-tritan"];
66
67function stripCssComments(css: string): string {
68 return css.replace(/\/\*[\s\S]*?\*\//g, "");
69}
70
71function extractBlock(css: string, selector: string): string | null {
72 const cssWithoutComments = stripCssComments(css);

Callers 1

extractBlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected