iptv-database/scripts/db/schemes/regions.js

16 lines
289 B
JavaScript
Raw Normal View History

2022-02-11 21:55:50 -05:00
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}$/)
2022-02-18 22:18:59 -05:00
.required()
2022-02-11 21:55:50 -05:00
)
}