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

Function stripCssComments

packages/cli/src/commands/keyframes.ts:365–367  ·  view source on GitHub ↗
(css: string)

Source from the content-addressed store, hash-verified

363// @keyframes reattaches to the following rule (and corrupts both the printed
364// selector and the --shot querySelector). Drop comments up front.
365function stripCssComments(css: string): string {
366 return css.replace(/\/\*[\s\S]*?\*\//g, " ");
367}
368
369function surfaceCssKeyframes(rawCss: string): SurfacedCssKeyframes[] {
370 const css = stripCssComments(rawCss);

Callers 1

surfaceCssKeyframesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected