Replace trimEnd with trim

trimEnd was introduced in Node.js 10.0 which is not in the 6.0 version we
use.
This commit is contained in:
Markus Mäkelä 2019-07-26 08:59:21 +03:00
parent f31f09fc66
commit 9171dbaad6
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -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
}