Skip to content

Commit

Permalink
fix(compiler-core): add \r to accepted chars after end tag name (#1515
Browse files Browse the repository at this point in the history
)

fix #1476
  • Loading branch information
Jack97 authored Jul 6, 2020
1 parent 4f6460a commit 64e2f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compiler-core/src/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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] || '>')
)
}

0 comments on commit 64e2f46

Please sign in to comment.