From b2655cdd462a3ea4306604eb851f3d01f5c4920c Mon Sep 17 00:00:00 2001 From: Vlad Svoka Date: Fri, 21 Mar 2025 17:08:18 -0700 Subject: [PATCH] Fixing for windows terminal forcing \r\n --- src/shared/stdio.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/stdio.ts b/src/shared/stdio.ts index a30e90bc..52bde646 100644 --- a/src/shared/stdio.ts +++ b/src/shared/stdio.ts @@ -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); }