Skip to content

Commit fb7ccb6

Browse files
committed
fix: avoid emoji length problem in update log (close #835)
1 parent e8d3a3c commit fb7ccb6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

β€Žpackages/@vue/cli/lib/util/clearConsole.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ module.exports = async function clearConsoleWithTitle (checkUpdate) {
1616
}
1717
if (checkUpdate && semver.gt(latest, current)) {
1818
title += chalk.green(`
19-
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€${`─`.repeat(latest.length)}─┐
20-
β”‚ ✨ Update available: ${latest} ✨ β”‚
21-
└─────────────────────────${`─`.repeat(latest.length)}β”€β”˜`)
19+
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€${`─`.repeat(latest.length)}──┐
20+
β”‚ Update available: ${latest} β”‚
21+
└────────────────────${`─`.repeat(latest.length)}β”€β”€β”˜`)
2222
}
2323

2424
clearConsole(title)

0 commit comments

Comments
Β (0)