mirror of
https://github.com/iptv-org/database.git
synced 2024-11-23 19:34:09 -05:00
10 lines
159 B
JavaScript
10 lines
159 B
JavaScript
const Joi = require('joi')
|
|
|
|
module.exports = {
|
|
id: Joi.string()
|
|
.regex(/^[a-z]+$/)
|
|
.required(),
|
|
name: Joi.string()
|
|
.regex(/^[A-Z]+$/i)
|
|
.required()
|
|
}
|