Merge pull request #214 from Shchvova/fixing-for-windows
Fixing for windows terminal forcing \r\n
This commit is contained in:
commit
4b69f40005
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ export class ReadBuffer {
|
|||
return null;
|
||||
}
|
||||
|
||||
const line = this._buffer.toString("utf8", 0, index);
|
||||
const line = this._buffer.toString("utf8", 0, index).replace(/\r$/, '');
|
||||
this._buffer = this._buffer.subarray(index + 1);
|
||||
return deserializeMessage(line);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue