Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify regex pattern for Angolan phone numbers #2512

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renaldodev
Copy link

@renaldodev renaldodev commented Dec 31, 2024

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

  • PR contains only changes related; no stray files, etc.
  • README updated (where applicable)
  • Tests written (where applicable)
  • References provided in PR (where applicable)

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