Skip to content

Commit

Permalink
fix(compiler-core): add \r to accepted chars after end tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Robertson committed Jul 5, 2020
1 parent 7b307f3 commit 545fbf3
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 545fbf3

Please sign in to comment.