Skip to content

Commit

Permalink
Guam Phone Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddhant-Kashyap committed Aug 4, 2023
1 parent dcf5deb commit 4307377
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/lib/isMobilePhone.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ const phones = {
'ar-YE': /^(((\+|00)9677|0?7)[0137]\d{7}|((\+|00)967|0)[1-7]\d{6})$/,
'ar-EH': /^(\+?212|0)[\s\-]?(5288|5289)[\s\-]?\d{5}$/,
'fa-AF': /^(\+93|0)?(2{1}[0-8]{1}|[3-5]{1}[0-4]{1})(\d{7})$/,
'gu-GU': /^(+?1|1)?(671)(\d{7})$/,
'gu-GU': /^(\+?1|1)?\s*671\s*\d{7}$/,

};
/* eslint-enable max-len */

Expand Down
6 changes: 2 additions & 4 deletions test/validators.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9965,15 +9965,13 @@ describe('Validators', () => {
valid: [
'+1 671 1234567',
'6711234567',
'+1671 9876543',
'1-671-555-1234',
'(671) 888-7777',
'+1671 9876543',
],
invalid: [
'911',
'+211999',
'123456789909',
'South Sudan',
'Guam',
'21195 840 238',
'+211981234567',
'+211931234567',
Expand Down

0 comments on commit 4307377

Please sign in to comment.