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

Merged
amit merged 3 commits from fix/country-specific-phone-validation into main 2026-11-19 05:11:22 +00:00

3 Commits

Author SHA1 Message Date
Urvish Prajapati 3d2c9c3c78 Merge branch 'main' into fix/country-specific-phone-validation 2026-11-17 11:49:03 +05:30
Urvish Prajapati 1dd80f23ba fix(validation): prioritize length errors over prefix errors in phone validation 2026-11-16 16:30:37 +05:30
Urvish Prajapati 841f9a86a5 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:26 +05:30