Answer the question
In order to leave comments, you need to log in
Correct regexp for the "phone" field. How to consider 8 and 7 when dialing a number?
Hello,
I'm using the example from this solution:
https://codesandbox.io/s/248vzprz2p?file=/index.js
To implement the phone mask.
const phoneNumberMask = [
"8",
"(",
/[1-9]/,
/\d/,
/\d/,
")",
" ",
/\d/,
/\d/,
/\d/,
"-",
/\d/,
/\d/,
/\d/,
/\d/
];
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