mirror of
https://github.com/iptv-org/database.git
synced 2024-11-14 15:42:32 -05:00
12 lines
224 B
JavaScript
12 lines
224 B
JavaScript
|
const Joi = require('joi')
|
||
|
|
||
|
module.exports = {
|
||
|
country: Joi.string()
|
||
|
.regex(/^[A-Z]{2}$/)
|
||
|
.required(),
|
||
|
name: Joi.string().required(),
|
||
|
code: Joi.string()
|
||
|
.regex(/^[A-Z]{2}-[A-Z0-9]{1,3}$/)
|
||
|
.required()
|
||
|
}
|