We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2f77dd commit 3e8b07dCopy full SHA for 3e8b07d
lib/cli.js
@@ -130,7 +130,7 @@ class CLI {
130
return;
131
}
132
const rest = (length - text.length - 2);
133
- const half = sep.repeat(Math.floor(rest / 2));
+ const half = sep.repeat(Math.abs(Math.floor(rest / 2)));
134
if (rest % 2 === 0) {
135
this.log(`${half} ${chalk.bold(text)} ${half}`);
136
} else {
0 commit comments