♻️ Move carriage return removal from Discord output to ADB output
This commit is contained in:
parent
e829316070
commit
7c50f6ef8d
1 changed files with 1 additions and 3 deletions
4
main.js
4
main.js
|
@ -30,7 +30,7 @@ const
|
|||
if(error || stderr)
|
||||
reject(error || stderr);
|
||||
else
|
||||
resolve(stdout);
|
||||
resolve(stdout.replace(/\r/g, '').trim());
|
||||
}
|
||||
)),
|
||||
handleCommand = async command => {
|
||||
|
@ -121,8 +121,6 @@ const
|
|||
if(!error.code.startsWith?.('commander.'))
|
||||
throw error;
|
||||
}
|
||||
if(response?.output)
|
||||
response.output = response.output.replace(/\r/g, '').trim();
|
||||
return response;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue