From 7eeea8448fedf0ea53c58722208ebc2a3a4cebd0 Mon Sep 17 00:00:00 2001 From: Hans Tool Date: Mon, 27 Mar 2023 00:27:13 +0200 Subject: [PATCH] Removing 0x00 to clean up B&G 129285. --- lib/fromPgn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fromPgn.js b/lib/fromPgn.js index f8b0af9..a02382e 100644 --- a/lib/fromPgn.js +++ b/lib/fromPgn.js @@ -800,7 +800,7 @@ fieldTypeReaders["String with start/stop byte"] = (pgn, field, bs) => { var c = bs.readUint8() buf.writeUInt8(c, idx) } - return buf.toString('ascii', 0, idx) + return buf.toString('ascii', 0, idx).replace(/\0.*$/g,'') } }