Skip to content

Conversation

garry000111
Copy link

@garry000111 garry000111 commented Sep 19, 2025

Title

feat(isMobilePhone): add fr-CI (Côte d’Ivoire) mobile phone validation

Description

This PR adds support for validating mobile phone numbers from Côte d’Ivoire (fr-CI) in isMobilePhone.

Changes include:

  • Added regex: /^(\+225|0)(0[1]|05|07)\d{7}$/ for fr-CI numbers.
  • Updated test/validators.test.js with valid and invalid test cases for fr-CI numbers.
  • Ensures that validator.isMobilePhone("+2250512345678", "fr-CI") passes validation.

References

Checklist

  • PR contains only changes related; no stray files, etc.
  • README updated (not applicable)
  • Tests written (added for fr-CI)
  • References provided in PR

@garry000111
Copy link
Author

Hi @ezkemboi , I’ve submitted a pull request to add mobile phone regex validation for fr-CI: #2509. Would you mind taking a look when you get a chance? Feedback is welcome! Thanks in advance

@rubiin rubiin changed the title Add fr-CI mobile phone regex validation fix: Add fr-CI mobile phone regex validation Sep 20, 2025
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