Update channels.js

This commit is contained in:
Aleksandr Statciuk 2022-03-01 12:26:55 +03:00
parent c15c8c1651
commit e827705b81

View file

@ -7,6 +7,9 @@ module.exports = {
name: Joi.string() name: Joi.string()
.regex(/^[\sa-zA-Z\u00C0-\u00FF0-9-!:&.+'/»#%°$@?()]+$/) .regex(/^[\sa-zA-Z\u00C0-\u00FF0-9-!:&.+'/»#%°$@?()]+$/)
.required(), .required(),
native_name: Joi.string()
.regex(/^[^",]+$/)
.allow(null),
network: Joi.string().allow(null), network: Joi.string().allow(null),
country: Joi.string() country: Joi.string()
.regex(/^[A-Z]{2}$/) .regex(/^[A-Z]{2}$/)