diff --git a/scripts/core/editor3/html/from-html/index.ts b/scripts/core/editor3/html/from-html/index.ts
index 23806faba6..6b5acd6d15 100644
--- a/scripts/core/editor3/html/from-html/index.ts
+++ b/scripts/core/editor3/html/from-html/index.ts
@@ -66,11 +66,11 @@ class HTMLParser {
manageEmbeds(__html: string): string {
let html = __html;
- const embedCount = html.match(//g)?.length ?? 0;
+ const embedCount = html.match(//g)?.length ?? 0;
for (let i = 0; i < embedCount; i++) {
- const startTag = html.match(//);
- const endTag = html.match(//);
+ const startTag = html.match(//);
+ const endTag = html.match(//);
if (startTag == null || endTag == null) {
continue;