MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / collapseCssWhitespace

Function collapseCssWhitespace

dashboard/build.shared.mjs:330–335  ·  view source on GitHub ↗
(segment)

Source from the content-addressed store, hash-verified

328}
329
330function collapseCssWhitespace(segment) {
331 return segment
332 .replace(/\s+/g, " ")
333 .replace(/\s*([{}:;,>])\s*/g, "$1")
334 .replace(/;}/g, "}");
335}
336
337/** Returns the index just past the string literal that begins at `i`. */
338function skipCssString(css, i) {

Callers 1

flushFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected