Skip to content

Commit 4b69f40

Browse files
Merge pull request #214 from Shchvova/fixing-for-windows
Fixing for windows terminal forcing \r\n
2 parents 9980cbf + b2655cd commit 4b69f40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/shared/stdio.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class ReadBuffer {
2020
return null;
2121
}
2222

23-
const line = this._buffer.toString("utf8", 0, index);
23+
const line = this._buffer.toString("utf8", 0, index).replace(/\r$/, '');
2424
this._buffer = this._buffer.subarray(index + 1);
2525
return deserializeMessage(line);
2626
}

0 commit comments

Comments
 (0)