]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(compiler-core): add `\r` to accepted chars after end tag name (#1515)
authorJack Robertson <jcrobertson97@gmail.com>
Mon, 6 Jul 2020 20:00:26 +0000 (21:00 +0100)
committerGitHub <noreply@github.com>
Mon, 6 Jul 2020 20:00:26 +0000 (16:00 -0400)
fix #1476

packages/compiler-core/src/parse.ts

index 4a7dc541e265120dcf2c9ac6ad25d2de21c63bd5..5212480fc76d3df9b82b201103fd0f724d501d7c 100644 (file)
@@ -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] || '>')
   )
 }