iptv-database/scripts/schemes/regions.ts

16 lines
287 B
TypeScript
Raw Normal View History

2024-12-05 06:25:53 -05:00
import Joi from 'joi'
2023-10-06 22:14:21 -04:00
2024-12-05 06:25:53 -05:00
export default {
2023-11-18 04:27:10 -05:00
name: Joi.string()
.regex(/^[\sA-Z\u00C0-\u00FF().,-]+$/i)
.required(),
code: Joi.string()
.regex(/^[A-Z]{2,7}$/)
.required(),
countries: Joi.array().items(
Joi.string()
.regex(/^[A-Z]{2}$/)
.required()
)
2023-10-06 22:14:21 -04:00
}