Skip to content

Commit

Permalink
feat(isMobilePhone): Fixed South Sudan Validation Locale And Prefix(SS)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheboi committed Jan 22, 2023
1 parent 2c64ee4 commit 6dcd6fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/isMobilePhone.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const phones = {
'en-IN': /^(\+?91|0)?[6789]\d{9}$/,
'en-JM': /^(\+?876)?\d{7}$/,
'en-KE': /^(\+?254|0)(7|1)\d{8}$/,
'en-SS': /^(\+?211|0)(9)\d{8}$/,
'en-SS': /^(\+?211|0)(9[1257])\d{7}$/,
'en-KI': /^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,
'en-KN': /^(?:\+1|1)869(?:46\d|48[89]|55[6-8]|66\d|76[02-7])\d{4}$/,
'en-LS': /^(\+?266)(22|28|57|58|59|27|52)\d{6}$/,
Expand Down
4 changes: 4 additions & 0 deletions test/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -9641,6 +9641,10 @@ describe('Validators', () => {
'123456789909',
'South Sudan',
'21195 840 238',
'+211981234567',
'+211931234567',
'+211901234567',
'+211991234567',

],
},
Expand Down

0 comments on commit 6dcd6fb

Please sign in to comment.