export const isValidPhone = (phone) => {
Checks whether a value looks like a valid Russian phone number.
Accepts either:
- 10 digits without a country prefix
- 11 digits starting with
7or8
Obvious repeated fake numbers are rejected as well.
Target style API. Preferred for new code.