-
Notifications
You must be signed in to change notification settings - Fork 11.5k
fix: Support 10-digit phone numbers for Ivory Coast (+225) #26465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Support 10-digit phone numbers for Ivory Coast (+225) #26465
Conversation
|
@kartik-212004 is attempting to deploy a commit to the cal-staging Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 1 file
Pallava-Joshi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
So how should it appear? Should it be in the format 3 digits – 3 digits – 3 digits – 1 digit, or is the current 2 digits – 2 digits – 2 digits – 2 digits – 2 digits format correct? In the attached video above, the 10 digits are accepted in the 2 digits – 2 digits – 2 digits – 2 digits – 2 digits format. and Could you please respond in English? |
|
Thank you for your quick response! Let me clarify the correct format for both countries: Benin (+229):
Ivory Coast (+225):
The Issue: Additionally, there is an inconsistent display formatting issue:
Both countries officially use the 2-2-2-2-2 format (five groups of 2 digits). The Benin number should be displayed as +229 01 65 52 66 57, not +229 016 552 665 7. This inconsistent formatting creates confusion for users. Expected behavior:
The validation library likely hasn't been updated with Ivory Coast's 2021 numbering plan migration (from 8 to 10 digits), and needs to be updated with Benin's very recent 2025 migration as well. |
|
Hello ! |
2605484
dhairyashiil
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
now both Benin (+229) and Ivory Coast (+225) accepts 10 digits and formated as 2-2-2-2-2 |
This will be available in the next release |
|
|
@edayeh8-ai it's live now, please check |




What does this PR do?
Fixes the phone number validation issue for Ivory Coast (+225) by updating the input mask to accept 10-digit numbers instead of the outdated 8-digit format.
Ivory Coast migrated to a 10-digit numbering plan in 2021, but the
react-phone-input-2library still uses the old 8-digit mask (".. .. .. ..") which was truncating valid phone numbers. This PR adds a custom mask override (".. .. .. .. ..") to allow users to enter their complete 10-digit Ivorian phone numbers.Visual Demo (For contributors especially)
Before:
https://www.loom.com/share/b72395f4f43c42a4ba28b8172b3fbad5
After:
https://www.loom.com/share/119641b0fbf6485cba8710dd83673c42
Mandatory Tasks (DO NOT REMOVE)
libphonenumber-jsalready validate 10-digit CI numbers correctly. The fix updates only the UI input mask.How should this be tested?
07 97 76 48 77+225 07 97 76 48 77)