From e827705b81fc05eb25c6e0f51355316570c01a84 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Tue, 1 Mar 2022 12:26:55 +0300 Subject: [PATCH] Update channels.js --- scripts/db/schemes/channels.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/db/schemes/channels.js b/scripts/db/schemes/channels.js index 11822fa2..dfcbc75d 100644 --- a/scripts/db/schemes/channels.js +++ b/scripts/db/schemes/channels.js @@ -7,6 +7,9 @@ module.exports = { name: Joi.string() .regex(/^[\sa-zA-Z\u00C0-\u00FF0-9-!:&.+'/»#%°$@?()]+$/) .required(), + native_name: Joi.string() + .regex(/^[^",]+$/) + .allow(null), network: Joi.string().allow(null), country: Joi.string() .regex(/^[A-Z]{2}$/)