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

Function getScript

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

Source from the content-addressed store, hash-verified

33}
34
35function getScript(parsed: ReturnType<typeof parseMutable>): string {
36 const doc = serializeDocument(parsed);
37 const m = /<script>([\s\S]*?)<\/script>/i.exec(doc);
38 return m ? m[1]!.trim() : "";
39}
40
41// ─── validateOp gating on timeline existence ──────────────────────────────────
42

Callers 2

Calls 1

serializeDocumentFunction · 0.85

Tested by

no test coverage detected