Skip to content

Commit 8627e48

Browse files
c-tannerprofnandaa
authored andcommitted
feat(isMobilePhone): add Kiribati en-KI locale
[chore] squashed from #1820 Clean up validator and add trailing comma
1 parent ed60123 commit 8627e48

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

src/lib/isMobilePhone.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ const phones = {
4141
'en-IE': /^(\+?353|0)8[356789]\d{7}$/,
4242
'en-IN': /^(\+?91|0)?[6789]\d{9}$/,
4343
'en-KE': /^(\+?254|0)(7|1)\d{8}$/,
44+
'en-KI': /^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,
4445
'en-MT': /^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,
4546
'en-MU': /^(\+?230|0)?\d{8}$/,
4647
'en-NA': /^(\+?264|0)(6|8)\d{7}$/,

test/validators.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6608,6 +6608,22 @@ describe('Validators', () => {
66086608
'+254800723845',
66096609
],
66106610
},
6611+
{
6612+
locale: 'en-KI',
6613+
valid: [
6614+
'+68673140000',
6615+
'68673059999',
6616+
'+68663000000',
6617+
'68663019999',
6618+
],
6619+
invalid: [
6620+
'+68653000000',
6621+
'68664019999',
6622+
'+68619019999',
6623+
'686123456789',
6624+
'+686733445',
6625+
],
6626+
},
66116627
{
66126628
locale: 'en-MT',
66136629
valid: [

0 commit comments

Comments
 (0)