Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

renaldodev
Copy link
Contributor

@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)

@rubiin rubiin requested a review from WikiRik March 16, 2025 13:26
Copy link
Member

@WikiRik WikiRik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this!

@WikiRik WikiRik requested a review from rubiin March 26, 2025 21:03
@WikiRik WikiRik changed the title Modify regex pattern for Angolan phone numbers fix(isPhoneNumber): improve pt-AO locale Mar 26, 2025
@rubiin rubiin merged commit aacf9b5 into validatorjs:master Mar 27, 2025
10 checks passed
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.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.