Skip to content

Enforced 9-digit phone number format after country code +254 (Kenya)#432

Open
Naymbura wants to merge 6 commits intovanshg395:masterfrom
Naymbura:fix-country-contact-length-kenya
Open

Enforced 9-digit phone number format after country code +254 (Kenya)#432
Naymbura wants to merge 6 commits intovanshg395:masterfrom
Naymbura:fix-country-contact-length-kenya

Conversation

@Naymbura
Copy link

Updated phone number validation to ensure that after selecting the country code +254, users must enter a 9-digit number starting with 7 (e.g., 712345678). This aligns with Kenyan dialing conventions, where users typically omit the leading 0 when the country code is already provided.

Maryann Kimani added 6 commits April 29, 2025 14:45
…their contact with 0 resulting to 10 digits while others choose 7 or 1 omitting 0 resulting to 9 digits which are both correct
…r 10 digits long for Kenya (while maintaining the existing behavior for other countries)
…ya's minLength: 9, maxLength: 10) as it retains the original behavior for other countries (checks exact min or max length).
…ng both 9 and 10 digits for Kenya, we need to modify both the validator and the maxLength logic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant