We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29826af commit e3140f5Copy full SHA for e3140f5
packages/cozy-scripts/utils/progress.js
@@ -172,7 +172,8 @@ ProgressBar.prototype.render = function(tokens, force) {
172
)
173
174
/* add head to the complete string */
175
- if (completeLength > 0) complete = complete.slice(0, -1) + this.chars.head
+ if (completeLength > 0)
176
+ complete = complete.slice(0, -this.chars.complete.length) + this.chars.head
177
178
/* fill in the actual progress bar */
179
str = str.replace(':bar', complete + incomplete)
0 commit comments