Skip to content

Add extra digit on Oman country code#2502

Merged
WikiRik merged 1 commit intovalidatorjs:masterfrom
tomcastro:master
Mar 27, 2025
Merged

Add extra digit on Oman country code#2502
WikiRik merged 1 commit intovalidatorjs:masterfrom
tomcastro:master

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)

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

Comments