Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add extra digit on Oman country code
Browse files Browse the repository at this point in the history
tomcastro committed Nov 25, 2024

Verified

This commit was signed with the committer’s verified signature.
tomcastro Tomás Castro
1 parent 86911d8 commit b17de7b
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/isMobilePhone.js
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ const phones = {
'ar-KW': /^(\+?965)([569]\d{7}|41\d{6})$/,
'ar-LY': /^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,
'ar-MA': /^(?:(?:\+|00)212|0)[5-7]\d{8}$/,
'ar-OM': /^((\+|00)968)?(9[1-9])\d{6}$/,
'ar-OM': /^((\+|00)968)?([79][1-9])\d{6}$/,
'ar-PS': /^(\+?970|0)5[6|9](\d{7})$/,
'ar-SA': /^(!?(\+?966)|0)?5\d{8}$/,
'ar-SD': /^((\+?249)|0)?(9[012369]|1[012])\d{7}$/,
1 change: 1 addition & 0 deletions test/validators.test.js
Original file line number Diff line number Diff line change
@@ -7520,6 +7520,7 @@ describe('Validators', () => {
locale: 'ar-OM',
valid: [
'+96891212121',
'+96871212121',
'0096899999999',
'93112211',
'99099009',

0 comments on commit b17de7b

Please sign in to comment.