Explorar o código

fix(compiler-core): add `\r` to accepted chars after end tag name (#1515)

fix #1476
Jack Robertson %!s(int64=6) %!d(string=hai) anos
pai
achega
64e2f46436
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

@@ -950,6 +950,6 @@ function startsWithEndTagOpen(source: string, tag: string): boolean {
   return (
     startsWith(source, '</') &&
     source.substr(2, tag.length).toLowerCase() === tag.toLowerCase() &&
-    /[\t\n\f />]/.test(source[2 + tag.length] || '>')
+    /[\t\r\n\f />]/.test(source[2 + tag.length] || '>')
   )
 }