iptv-database/scripts/db/schemes/regions.js
Aleksandr Statciuk 6d9bff097d Update regions.js
2022-02-19 06:18:59 +03:00

15 lines
289 B
JavaScript

const Joi = require('joi')
module.exports = {
name: Joi.string()
.regex(/^[\sA-Z\u00C0-\u00FF().,-]+$/i)
.required(),
code: Joi.string()
.regex(/^[A-Z]{3,7}$/)
.required(),
countries: Joi.array().items(
Joi.string()
.regex(/^[A-Z]{2}$/)
.required()
)
}