Skip to content

Commit 5922da3

Browse files
committed
fix(player): type runtime tag boundaries
1 parent 8a7ddcb commit 5922da3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/player/src/runtime-in-srcdoc.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function alreadyHasRuntime(html: string, runtimeUrl: string): boolean {
3333
}
3434

3535
type OpeningTag = { index: number; end: number };
36-
const OPENING_TAG_BOUNDARIES = new Set([">", " ", "\t", "\n", "\r", "\f"]);
36+
const OPENING_TAG_BOUNDARIES = new Set<string | undefined>([">", " ", "\t", "\n", "\r", "\f"]);
3737

3838
/** Find an opening tag in one linear pass, without a backtracking regex over caller-owned HTML. */
3939
function findOpeningTag(html: string, tagName: string): OpeningTag | null {

0 commit comments

Comments
 (0)