We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3bcd2a commit fb0c823Copy full SHA for fb0c823
packages/app/src/sandbox/compile.ts
@@ -46,7 +46,7 @@ export function getCurrentManager(): Manager | null {
46
47
export function getHTMLParts(html: string) {
48
if (html.includes('<body>')) {
49
- const bodyMatcher = /<body>([\s\S]*)<\/body>/m;
+ const bodyMatcher = /<body.*>([\s\S]*)<\/body>/m;
50
const headMatcher = /<head>([\s\S]*)<\/head>/m;
51
52
const headMatch = html.match(headMatcher);
0 commit comments