Skip to content

Commit 64e2f46

Browse files
authored
fix(compiler-core): add \r to accepted chars after end tag name (#1515)
fix #1476
1 parent 4f6460a commit 64e2f46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/compiler-core/src/parse.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,6 @@ function startsWithEndTagOpen(source: string, tag: string): boolean {
950950
return (
951951
startsWith(source, '</') &&
952952
source.substr(2, tag.length).toLowerCase() === tag.toLowerCase() &&
953-
/[\t\n\f />]/.test(source[2 + tag.length] || '>')
953+
/[\t\r\n\f />]/.test(source[2 + tag.length] || '>')
954954
)
955955
}

0 commit comments

Comments
 (0)