From 97a76fd88c265f0c7a2f6d6961cdd59f7efae46f Mon Sep 17 00:00:00 2001 From: Niels Simenon Date: Thu, 3 Nov 2022 16:45:49 +0100 Subject: [PATCH] Updated curated country file. --- assets/countries-curated.json | 3 ++- assets/countries.json | 3 ++- src/games/geo.js | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/assets/countries-curated.json b/assets/countries-curated.json index b32c9aa..2ffd792 100644 --- a/assets/countries-curated.json +++ b/assets/countries-curated.json @@ -202,7 +202,8 @@ "file": "3ba0.png", "code": 384, "alpha2": "CI", - "name": "Côte d'Ivoire" + "name": "Ivory Coast", + "fullName": "Ivory Coast (Côte d'Ivoire)" }, { "file": "5bc5.png", diff --git a/assets/countries.json b/assets/countries.json index 1cdc220..fe0a062 100644 --- a/assets/countries.json +++ b/assets/countries.json @@ -276,7 +276,8 @@ { "alpha2": "CI", "code": 384, - "name": "Côte d'Ivoire" + "name": "Ivory Coast", + "fullName": "Ivory Coast (Côte d'Ivoire)" }, { "alpha2": "HR", diff --git a/src/games/geo.js b/src/games/geo.js index d213829..d97a107 100644 --- a/src/games/geo.js +++ b/src/games/geo.js @@ -19,7 +19,7 @@ const questions = [ function hint(game, context) { if (game.name.length >= 5) { - context.sendMessage(`${style.bold(`${game.name.slice(0, 1)} ${game.name.slice(1, -1).replace(/\s/g, ' ').replace(/[^\s]/g, '_ ')}${game.name.slice(-1)}`.toUpperCase())}, the country code s ${style.bold(game.alpha2)}`, context.room.id); // eslint-disable-line no-irregular-whitespace + context.sendMessage(`${style.bold(`${game.name.slice(0, 1)} ${game.name.slice(1, -1).replace(/\s/g, ' ').replace(/[^\s]/g, '_ ')}${game.name.slice(-1)}`.toUpperCase())}, the country code is ${style.bold(game.alpha2)}`, context.room.id); // eslint-disable-line no-irregular-whitespace return; }