Update channels.js

This commit is contained in:
Aleksandr Statciuk 2022-02-17 00:03:39 +03:00
parent 0ab05fad95
commit 3b7749c19e

View file

@ -14,7 +14,9 @@ module.exports = {
subdivision: Joi.string()
.regex(/^[A-Z]{2}-[A-Z0-9]{1,3}$/)
.allow(null),
city: Joi.string().allow(null),
city: Joi.string()
.regex(/^[\sa-zA-Z\u00C0-\u00FF0-9'-]+$/)
.allow(null),
broadcast_area: Joi.array().items(
Joi.string().regex(/^(s\/[A-Z]{2}-[A-Z0-9]{1,3}|c\/[A-Z]{2}|r\/[A-Z0-9]{3,7})$/)
),