Answer the question
In order to leave comments, you need to log in
TSlinter swears at character?
phone: (value: string) => {
// eslint-disable-next-line
const pattern = /^\d[\d\(\)\ -]{4,14}\d$/;
return pattern.test(value) || 'Введи корректный телефон';
},
132:32 error Unnecessary escape character: \( no-useless-escape
132:34 error Unnecessary escape character: \) no-useless-escape
132:36 error Unnecessary escape character: \ . no-useless-escape
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question