Rename _.trunc to _.truncate.

This commit is contained in:
Xotic750
2015-10-26 21:16:43 +01:00
committed by John-David Dalton
parent accb8e9b07
commit 5218fd2c24
4 changed files with 31 additions and 31 deletions

View File

@@ -268,7 +268,7 @@ function isJobId(value) {
*/
function logInline(text) {
var blankLine = _.repeat(' ', _.size(prevLine));
prevLine = text = _.trunc(text, { 'length': 40 });
prevLine = text = _.truncate(text, { 'length': 40 });
process.stdout.write(text + blankLine.slice(text.length) + '\r');
}