Answer the question
In order to leave comments, you need to log in
How to clean up a line from unnecessary characters in the Joi scheme?
Is there such a possibility?
For example, in the diagram
name: Joi.string().min(20).max(120).error(new Error(message.name)),
Answer the question
In order to leave comments, you need to log in
name: Joi.string().min(20).max(120).replace(/[^a-zа-яё\d-,.:]/ig, '').error(new Error(message.name)),
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question