Remove use of deprecated trimLeft/trimRight

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2022-08-31 09:45:23 +02:00
parent a11e05c89c
commit 3d4f5daadf
4 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ export function spawnPiped(cmd: string[], options?: SpawnOptions) {
return (data: Buffer) => {
const prefixedMsg = data
.toString('utf8')
.trimRight()
.trimEnd()
.replace(/^/gm, prefix);
stream.write(`${prefixedMsg}\n`, 'utf8');
};