Add support for Nigerian area code 20#566
Closed
davemcginnzendesk wants to merge 1 commit into
Closed
Conversation
Adds validation and formatting support for Nigerian phone numbers with area code 20, allowing 6-8 digit local numbers (split pattern 3, 3..5). This fixes validation for numbers like +234 20 13438806 which were previously rejected as invalid despite being properly formatted. Fixes Zendesk Z2 ticket #14715836 where customer reported being unable to add +2342013438806 as an external number in Talk. Changes: - Add area code 20 pattern before 1-digit area codes to ensure correct matching - Add split pattern split(3, 3..5) to support 6-8 digit local numbers - Add test cases for 7 and 8 digit local numbers with area code 20 - Add plausibility test for area code 20 numbers Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
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.
No description provided.