iptv-database/scripts/db/schemes/subdivisions.js
Aleksandr Statciuk 26d5bf0436 Init
2022-02-12 05:55:50 +03:00

11 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()
}