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

fix #1476
This commit is contained in:
Jack Robertson 2020-07-06 21:00:26 +01:00 committed by GitHub
parent 4f6460a71f
commit 64e2f46436
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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] || '>')
)
}