Skip to content

Commit

Permalink
feat(opencollective prompt): fix azure ci
Browse files Browse the repository at this point in the history
  • Loading branch information
misterdev committed Mar 11, 2019
1 parent ea906d8 commit ea0039a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/opencollective.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function emoji(emoji) {
}

function print(str = "", color = "dim") {
const terminalCols = process.platform === "win32" ? 80 : parseInt(child_process.execSync("tput cols").toString());
const terminalCols = process.platform === "win32" ? 80 : parseInt(child_process.execSync("tty -s && tput cols").toString());
// eslint-disable-next-line no-control-regex
const ansiEscapeSeq = /\u001b\[[0-9]{1,2}m/g;
const strLength = str.replace(ansiEscapeSeq, "").length;
Expand Down

0 comments on commit ea0039a

Please sign in to comment.