fix(compiler-core): add \r
to accepted chars after end tag name (#1515)
fix #1476
This commit is contained in:
parent
4f6460a71f
commit
64e2f46436
@ -950,6 +950,6 @@ function startsWithEndTagOpen(source: string, tag: string): boolean {
|
|||||||
return (
|
return (
|
||||||
startsWith(source, '</') &&
|
startsWith(source, '</') &&
|
||||||
source.substr(2, tag.length).toLowerCase() === tag.toLowerCase() &&
|
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] || '>')
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user