fix(validation): add country-specific mobile phone validation and libphonenumber-js #127

Merged
amit merged 2 commits from fix/country-specific-phone-validation into main 2026-11-17 05:03:53 +00:00

2 Commits

Author SHA1 Message Date
Urvish Prajapati b2fe1e635e fix(validation): prioritize length errors over prefix errors in phone validation 2026-11-16 16:30:50 +05:30
Urvish Prajapati 0c60b835a0 fix(validation): add country-specific mobile phone validation and libphonenumber-js
- Integrate libphonenumber-js to validate country mobile numbering plans (e.g., France 06/07, India 6-9, UK 07)
- Add ISO-2 country codes to eliminate dropdown collisions between countries sharing dial codes (+1 for US and Canada)
- Automatically strip leading national trunk zero (0) when converting to standard international E.164 format
- Ensure new dependency is registered in package.json and package-lock.json for npm install
2026-11-16 16:13:36 +05:30