Check for CRLF when scanning consecutive whitespace
This commit is contained in:
parent
c53f344871
commit
e7652b7a71
1 changed files with 6 additions and 1 deletions
|
|
@ -191,7 +191,12 @@ export function parse(input: string) {
|
|||
else if (
|
||||
(currentChar === SPACE || currentChar === LINE_BREAK || currentChar === TAB) &&
|
||||
(peekChar = input.charCodeAt(i + 1)) &&
|
||||
(peekChar === SPACE || peekChar === LINE_BREAK || peekChar === TAB)
|
||||
(peekChar === SPACE ||
|
||||
peekChar === LINE_BREAK ||
|
||||
peekChar === TAB ||
|
||||
(peekChar === CARRIAGE_RETURN &&
|
||||
(peekChar = input.charCodeAt(i + 2)) &&
|
||||
peekChar == LINE_BREAK))
|
||||
) {
|
||||
continue
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue