iptv-database/scripts/schemes/regions.js

16 lines
294 B
JavaScript
Raw Normal View History

2023-10-06 22:14:21 -04:00
const Joi = require('joi')
module.exports = {
2023-11-18 04:27:10 -05:00
name: Joi.string()
.regex(/^[\sA-Z\u00C0-\u00FF().,-]+$/i)
.required(),
code: Joi.string()
.regex(/^[A-Z]{2,7}$/)
.required(),
countries: Joi.array().items(
Joi.string()
.regex(/^[A-Z]{2}$/)
.required()
)
2023-10-06 22:14:21 -04:00
}