Modify regex pattern for Angolan phone numbers #2512
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.
The regex pattern for Angolan phone numbers was updated to allow for more flexible matching of valid phone numbers.
This modification introduces two changes:
Optional + sign: The phone number is now optionally allowed to begin with the + sign (e.g., +244 or 244 are both valid).
First digit 9: The number must start with a 9, followed by exactly 8 digits (total length: 9 digits). This change allows phone numbers like 9XXXXXXXX (without the country code) or +2449XXXXXXXX to be matched.
Checklist