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

Add extra digit on Oman country code #2502

Merged
merged 1 commit into from
Mar 27, 2025
Merged

Conversation

tomcastro
Copy link
Contributor

According to Wikipedia , phone numbers in Oman start with +968, then a 7 or a 9 followed by 7 digits. The current regex only allows 9 as a prefix, which fails with newer phone numbers. This PR adds the extra digit to be allowed.

Checklist

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

@WikiRik WikiRik merged commit 055559d 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