mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-19 01:33:15 -05:00
Fix wrong condition for unterminated multi-line comments
This commit is contained in:
@@ -2025,9 +2025,9 @@ module ts {
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
// is unterminated multiline comment
|
||||
return text.charCodeAt(comment.end - 1) !== CharacterCodes.slash &&
|
||||
text.charCodeAt(comment.end - 2) !== CharacterCodes.asterisk;
|
||||
// is unterminated multi-line comment
|
||||
return !(text.charCodeAt(comment.end - 1) === CharacterCodes.slash &&
|
||||
text.charCodeAt(comment.end - 2) === CharacterCodes.asterisk);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user