diff --git a/packages/compiler-core/src/parse.ts b/packages/compiler-core/src/parse.ts index f856d06027d..dbadeff771b 100644 --- a/packages/compiler-core/src/parse.ts +++ b/packages/compiler-core/src/parse.ts @@ -694,7 +694,7 @@ function parseAttributeValue( if (!match) { return undefined } - let unexpectedChars = /["'<=`]/g + const unexpectedChars = /["'<=`]/g let m: RegExpExecArray | null while ((m = unexpectedChars.exec(match[0])) !== null) { emitError(