mirror of
https://github.com/iptv-org/database.git
synced 2024-11-21 18:42:31 -05:00
Update regions.js
This commit is contained in:
parent
4574802a4f
commit
47bfeee518
1 changed files with 11 additions and 11 deletions
|
@ -1,15 +1,15 @@
|
||||||
const Joi = require('joi')
|
const Joi = require('joi')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: Joi.string()
|
name: Joi.string()
|
||||||
.regex(/^[\sA-Z\u00C0-\u00FF().,-]+$/i)
|
.regex(/^[\sA-Z\u00C0-\u00FF().,-]+$/i)
|
||||||
.required(),
|
.required(),
|
||||||
code: Joi.string()
|
code: Joi.string()
|
||||||
.regex(/^[A-Z]{3,7}$/)
|
.regex(/^[A-Z]{2,7}$/)
|
||||||
.required(),
|
.required(),
|
||||||
countries: Joi.array().items(
|
countries: Joi.array().items(
|
||||||
Joi.string()
|
Joi.string()
|
||||||
.regex(/^[A-Z]{2}$/)
|
.regex(/^[A-Z]{2}$/)
|
||||||
.required()
|
.required()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue