♻️ Move carriage return removal from Discord output to ADB output

This commit is contained in:
KaKi87 2024-01-27 22:20:45 +01:00
parent e829316070
commit 7c50f6ef8d

View file

@ -30,7 +30,7 @@ const
if(error || stderr) if(error || stderr)
reject(error || stderr); reject(error || stderr);
else else
resolve(stdout); resolve(stdout.replace(/\r/g, '').trim());
} }
)), )),
handleCommand = async command => { handleCommand = async command => {
@ -121,8 +121,6 @@ const
if(!error.code.startsWith?.('commander.')) if(!error.code.startsWith?.('commander.'))
throw error; throw error;
} }
if(response?.output)
response.output = response.output.replace(/\r/g, '').trim();
return response; return response;
}; };