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

Function getStyleText

packages/sdk/src/engine/mutate.cssstyle.test.ts:29–33  ·  view source on GitHub ↗
(parsed: ReturnType<typeof parseMutable>)

Source from the content-addressed store, hash-verified

27}
28
29function getStyleText(parsed: ReturnType<typeof parseMutable>): string {
30 const doc = serializeDocument(parsed);
31 const m = /<style>([\s\S]*?)<\/style>/i.exec(doc);
32 return m ? m[1]! : "";
33}
34
35// ─── validateOp ───────────────────────────────────────────────────────────────
36

Callers 1

Calls 1

serializeDocumentFunction · 0.85

Tested by

no test coverage detected