Skip to content

Commit fb0c823

Browse files
committed
Fix regex on body
1 parent e3bcd2a commit fb0c823

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/app/src/sandbox/compile.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function getCurrentManager(): Manager | null {
4646

4747
export function getHTMLParts(html: string) {
4848
if (html.includes('<body>')) {
49-
const bodyMatcher = /<body>([\s\S]*)<\/body>/m;
49+
const bodyMatcher = /<body.*>([\s\S]*)<\/body>/m;
5050
const headMatcher = /<head>([\s\S]*)<\/head>/m;
5151

5252
const headMatch = html.match(headMatcher);

0 commit comments

Comments
 (0)