Update channels.js

This commit is contained in:
Aleksandr Statciuk 2022-10-18 18:37:42 +03:00
parent 3ba8205ce5
commit 03d0a54dae

View file

@ -8,10 +8,11 @@ module.exports = {
name: Joi.string() name: Joi.string()
.regex(/^[\sa-z\u00C0-\u00FF0-9-čâộăšİ!:&.+'/»#%°$@?()¡]+$/i) .regex(/^[\sa-z\u00C0-\u00FF0-9-čâộăšİ!:&.+'/»#%°$@?()¡]+$/i)
.required(), .required(),
native_name: Joi.string() alt_names: Joi.array().items(
Joi.string()
.regex(/^[^",]+$/) .regex(/^[^",]+$/)
.invalid(Joi.ref('name')) .invalid(Joi.ref('name'))
.allow(null), ),
network: Joi.string() network: Joi.string()
.regex(/^[^",]+$/) .regex(/^[^",]+$/)
.allow(null), .allow(null),