diff --git a/lib/cli.js b/lib/cli.js index 20eceb60..cde95177 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -130,7 +130,7 @@ class CLI { return; } const rest = (length - text.length - 2); - const half = sep.repeat(Math.floor(rest / 2)); + const half = sep.repeat(Math.abs(Math.floor(rest / 2))); if (rest % 2 === 0) { this.log(`${half} ${chalk.bold(text)} ${half}`); } else {