From 9171dbaad674c683c21c91525bed8a46f8178602 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Fri, 26 Jul 2019 08:59:21 +0300 Subject: [PATCH] Replace trimEnd with trim trimEnd was introduced in Node.js 10.0 which is not in the 6.0 version we use. --- maxctrl/lib/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maxctrl/lib/common.js b/maxctrl/lib/common.js index 035a50ace..796fa1834 100644 --- a/maxctrl/lib/common.js +++ b/maxctrl/lib/common.js @@ -144,7 +144,7 @@ module.exports = function() { str = str.replace( /\x1B\[[(?);]{0,2}(;?\d)*./g, '') // Trim trailing whitespace that cli-table generates - str = str.split(os.EOL).map(s => s.split('\t').map(s => s.trimEnd()).join('\t')).join(os.EOL) + str = str.split(os.EOL).map(s => s.split('\t').map(s => s.trim()).join('\t')).join(os.EOL) } return str }