Skip to content

Commit

Permalink
fix: linting and +1 test
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael Brens authored and Rafael Brens committed Nov 30, 2024
1 parent a030852 commit bb2947d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/lib/isMobilePhone.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const phones = {
'en-AG': /^(?:\+1|1)268(?:464|7(?:1[3-9]|[28]\d|3[0246]|64|7[0-689]))\d{4}$/,
'en-BM': /^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}$))/,
'en-BS': /^(\+?1[-\s]?|0)?\(?242\)?[-\s]?\d{3}[-\s]?\d{4}$/,
'en-DM': /^(\+?1|0)767(?:2(?:[2-4689]|7[0-4])|31[5-7]|4(?:[37]|6[0-4])|50[1-9]|642[0-4]|76[89])\d{4}$/,
'en-DM': /^(\+?1)?767\d{7}$/,
'en-GB': /^(\+?44|0)7[1-9]\d{8}$/,
'en-GG': /^(\+?44|0)1481\d{6}$/,
'en-GH': /^(\+233|0)(20|50|24|54|27|57|26|56|23|53|28|55|59)\d{7}$/,
Expand Down
8 changes: 4 additions & 4 deletions test/validators.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10743,7 +10743,7 @@ describe('Validators', () => {
'+17672505678',
'17677625678',
'7673155678',
'7674375678'
'7674375678',
],
invalid: [
'+17612345678',
Expand All @@ -10756,9 +10756,9 @@ describe('Validators', () => {
'This should fail',
'+176723456',
'76723456',
'7672'
]
}
'7672',
],
},
];

let allValid = [];
Expand Down

0 comments on commit bb2947d

Please sign in to comment.