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,