From 16c585d41d649af8a1be4cd35559d60970f27339 Mon Sep 17 00:00:00 2001 From: Brian Seymour Date: Sun, 14 Mar 2021 22:08:56 -0500 Subject: [PATCH] dont trim output --- lxc/execute.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lxc/execute.js b/lxc/execute.js index fc9fb8b..a1bac7d 100644 --- a/lxc/execute.js +++ b/lxc/execute.js @@ -37,9 +37,9 @@ function execute(language, source, stdin = '', args = []) { }); process.on('exit', code => { - stderr = stderr.trim().substring(0, OUTPUT_LIMIT); - stdout = stdout.trim().substring(0, OUTPUT_LIMIT); - output = output.trim().substring(0, OUTPUT_LIMIT); + stderr = stderr.substring(0, OUTPUT_LIMIT); + stdout = stdout.substring(0, OUTPUT_LIMIT); + output = output.substring(0, OUTPUT_LIMIT); resolve({ stdout,