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

Function findHtmlTag

packages/lint/src/utils.ts:84–93  ·  view source on GitHub ↗
(source: string)

Source from the content-addressed store, hash-verified

82 * metadata like `data-composition-variables` lives.
83 */
84export function findHtmlTag(source: string): OpenTag | null {
85 const match = /<html\b([^<>]*)>/i.exec(source);
86 if (!match) return null;
87 return {
88 raw: match[0],
89 name: "html",
90 attrs: match[1] ?? "",
91 index: match.index,
92 };
93}
94
95export function findRootTag(source: string): OpenTag | null {
96 const bodyOpenMatch = /<body\b([^>]*)>/i.exec(source);

Callers 1

composition.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected