Skip to content

Commit 0b85364

Browse files
committed
allows line break and whitespace in closing tags map
1 parent c721763 commit 0b85364

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/compiler/scanner.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,9 @@ module ts {
616616
if (!isIdentifierPart(ch, languageVersion) &&
617617
ch !== CharacterCodes.minus &&
618618
ch !== CharacterCodes.dot &&
619-
ch !== CharacterCodes.backslash) {
619+
ch !== CharacterCodes.backslash &&
620+
!isWhiteSpace(ch) &&
621+
!isLineBreak(ch)) {
620622
break;
621623
}
622624
p++;

0 commit comments

Comments
 (0)