Skip to content

Commit fd4ad7a

Browse files
committed
splice country name for table formatting
1 parent a728703 commit fd4ad7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/worldoMeters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ exports.getWorldoMetersTable = async ({
2727
data.some(cd => {
2828
const countryEmoji = getEmoji(cd.countryCode) || '🏳️';
2929
const values = [
30-
cFormatter(`${cd.country} (${cd.countryCode})` , chalk.cyanBright),
30+
cFormatter(`${cd.country.slice(0, 30)} (${cd.countryCode === undefined ? '' : cd.countryCode })` , chalk.cyanBright),
3131
cFormatter(cd.cases, chalk.green, 'right', true),
3232
cFormatter(cd.todayCases, chalk.cyanBright, 'right', true, ' ▲'),
3333
cFormatter(cd.deaths, chalk.whiteBright, 'right', true),

0 commit comments

Comments
 (0)