iptv-database/scripts/schemes/subdivisions.js

12 lines
213 B
JavaScript
Raw Normal View History

2023-10-06 22:14:21 -04:00
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()
}