From cf9f7b4608b0b814b613cb1f2bf4a15278cddacb Mon Sep 17 00:00:00 2001 From: WongXX Date: Sun, 26 May 2024 01:53:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=BE=A9=E6=8E=A7=E8=A3=BD=E5=8F=B0?= =?UTF-8?q?=E9=99=84=E5=B8=B6=20r=20n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index a8d7ab0..fd51f4f 100644 --- a/index.js +++ b/index.js @@ -9,7 +9,7 @@ function readlineSync(msg = "Input:") { process.stdin.resume(); process.stdin.on("data", function (data) { process.stdin.pause(); - resolve(data); + resolve(data.substring(0, data.length - 2)); }); }); }