diff --git a/scripts/db/schemes/channels.js b/scripts/db/schemes/channels.js index 57620277..6b723cdd 100644 --- a/scripts/db/schemes/channels.js +++ b/scripts/db/schemes/channels.js @@ -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})$/) ),