(parsed: ReturnType<typeof parseMutable>)
| 33 | } |
| 34 | |
| 35 | function 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 |
no test coverage detected