Update countries.js

This commit is contained in:
Aleksandr Statciuk 2022-10-24 03:43:21 +03:00
parent 98d9b1bc83
commit 1f4212f030

View file

@ -7,9 +7,11 @@ module.exports = {
code: Joi.string() code: Joi.string()
.regex(/^[A-Z]{2}$/) .regex(/^[A-Z]{2}$/)
.required(), .required(),
lang: Joi.string() languages: Joi.array().items(
.regex(/^[a-z]{3}$/) Joi.string()
.required(), .regex(/^[a-z]{3}$/)
.required()
),
flag: Joi.string() flag: Joi.string()
.regex(/^[\uD83C][\uDDE6-\uDDFF][\uD83C][\uDDE6-\uDDFF]$/) .regex(/^[\uD83C][\uDDE6-\uDDFF][\uD83C][\uDDE6-\uDDFF]$/)
.required() .required()