feat(isMobilePhone): add Djibouti (fr-DJ) mobile phone validation#2676
Merged
rubiin merged 4 commits intovalidatorjs:masterfrom Mar 7, 2026
Merged
Conversation
profnandaa
reviewed
Mar 4, 2026
Member
profnandaa
left a comment
There was a problem hiding this comment.
Thanks for your contribution, just one comment.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2676 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 114 114
Lines 2595 2595
Branches 659 659
=========================================
Hits 2595 2595 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
profnandaa
previously approved these changes
Mar 5, 2026
Contributor
Author
WikiRik
requested changes
Mar 5, 2026
WikiRik
reviewed
Mar 6, 2026
WikiRik
approved these changes
Mar 6, 2026
profnandaa
approved these changes
Mar 7, 2026
Contributor
Author
|
Friendly follow-up: all checks and approvals are complete ✅ Let me know if anything else is needed for merge. |
rubiin
approved these changes
Mar 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add mobile phone validation support for Djibouti (fr-DJ locale).
Description
The 2012 International Telecommunication Union document https://www.itu.int/dms_pub/itu-t/opb/sp/T-SP-OB.998-2012-OAS-PDF-E.pdf (pages 8–11) remains one of the clearest primary references for Djibouti’s 8-digit mobile numbering migration, while later references generally confirm the same numbering structure without detailed prefix tables.
The regex
^(?:\+253)?77[6-8]\d{5}$was selected because it aligns with currently documented mobile allocations in Djibouti, specifically the published776–778ranges used by Djibouti Telecom. It validates the present known active mobile prefixes together with the optional+253country code, making it more accurate for current numbering data than a broader pattern that would also admit undocumented ranges.Addresses #1761
Changes
Checklist