Skip to content

Commit 20b8408

Browse files
committed
revert
1 parent 5d90a1c commit 20b8408

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hook-inline.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { SandboxOptions } from "./sandpack";
66
const escapeHTMLComment = (content: string) => {
77
// It will be restored when parsing comment
88
// to avoid break -->
9-
return content.replace(/<!--/g, "\\u003c\\u0021\\u002d\\u002d").replace(/"-->"/g, "\\u002d\\u002d\\u003e");
9+
return content.split("<!--").join("\\u003c\\u0021\\u002d\\u002d").split("-->").join("\\u002d\\u002d\\u003e");
1010
};
1111
export const inlineFiles = (content: string, filePath: string) => {
1212
const baseDir = path.dirname(filePath);

0 commit comments

Comments
 (0)