Skip to content

Commit 055559d

Browse files
authored
fix(isMobilePhone): improve ar-OM locale (#2502)
1 parent 2866bb1 commit 055559d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/lib/isMobilePhone.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const phones = {
1313
'ar-KW': /^(\+?965)([569]\d{7}|41\d{6})$/,
1414
'ar-LY': /^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,
1515
'ar-MA': /^(?:(?:\+|00)212|0)[5-7]\d{8}$/,
16-
'ar-OM': /^((\+|00)968)?(9[1-9])\d{6}$/,
16+
'ar-OM': /^((\+|00)968)?([79][1-9])\d{6}$/,
1717
'ar-PS': /^(\+?970|0)5[6|9](\d{7})$/,
1818
'ar-SA': /^(!?(\+?966)|0)?5\d{8}$/,
1919
'ar-SD': /^((\+?249)|0)?(9[012369]|1[012])\d{7}$/,

test/validators.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7300,6 +7300,7 @@ describe('Validators', () => {
73007300
locale: 'ar-OM',
73017301
valid: [
73027302
'+96891212121',
7303+
'+96871212121',
73037304
'0096899999999',
73047305
'93112211',
73057306
'99099009',

0 commit comments

Comments
 (0)