fix(validation): implement generic country prefix validation for mobile numbers (issue #116) #118

Merged
amit merged 1 commits from fix/issue-116-country-mobile-validation into main 2026-11-25 05:13:24 +00:00

1 Commits

Author SHA1 Message Date
ShivaniKhaire 5241396999 fix(validation): implement generic country prefix validation for mobile numbers (issue #116)
- Add validPrefixes and example fields to CountryCode interface in constants/countries.ts
- Refactor validatePhoneNumber in utils/validation.ts to generically enforce starting prefixes across all countries
- Clearly indicate starting prefix requirement (e.g. 'For Pakistan, the mobile number must start with 3.')
- Improve phone input error matching in AuthModal and ProfileDrawer for mobile validation errors
2026-11-23 12:48:07 +05:30