Explorar o código

chore: use 'const' instead of 'let' (#755) [ci skip]

Luxiaosong %!s(int64=6) %!d(string=hai) anos
pai
achega
c54aa43fa7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/compiler-core/src/parse.ts

+ 1 - 1
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(