Fixing for windows terminal forcing \r\n

This commit is contained in:
Vlad Svoka 2025-03-21 17:08:18 -07:00 • committed by GitHub
commit b2655cdd46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}