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()
.regex(/^[A-Z]{2}$/)
.required(),
lang: Joi.string()
.regex(/^[a-z]{3}$/)
.required(),
languages: Joi.array().items(
Joi.string()
.regex(/^[a-z]{3}$/)
.required()
),
flag: Joi.string()
.regex(/^[\uD83C][\uDDE6-\uDDFF][\uD83C][\uDDE6-\uDDFF]$/)
.required()