fix: avoid emoji length problem in update log (close #835)

This commit is contained in:
Evan You
2018-04-25 14:44:25 -04:00
parent e8d3a3c3f6
commit fb7ccb6678

View File

@@ -16,9 +16,9 @@ module.exports = async function clearConsoleWithTitle (checkUpdate) {
}
if (checkUpdate && semver.gt(latest, current)) {
title += chalk.green(`
┌─────────────────────────${``.repeat(latest.length)}─┐
Update available: ${latest}
└─────────────────────────${``.repeat(latest.length)}─┘`)
┌────────────────────${``.repeat(latest.length)}
│ Update available: ${latest}
└────────────────────${``.repeat(latest.length)}`)
}
clearConsole(title)