Skip to content

Commit

Permalink
fix: avoid emoji length problem in update log (close #835)
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Apr 25, 2018
1 parent e8d3a3c commit fb7ccb6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/@vue/cli/lib/util/clearConsole.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fb7ccb6

Please sign in to comment.