mirror of
https://github.com/iptv-org/database.git
synced 2024-11-13 23:32:31 -05:00
15 lines
274 B
JavaScript
15 lines
274 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()
|
|
)
|
|
}
|