Update channels.js

This commit is contained in:
Aleksandr Statciuk 2022-05-16 17:12:49 +03:00
parent 7b40381041
commit 9d7a30ea54

View file

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