Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib/isMobilePhone.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const phones = {
'ar-QA': /^(\+?974|0)?([3567]\d{7})$/,
'bs-BA': /^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,
'be-BY': /^(\+?375)?(24|25|29|33|44)\d{7}$/,
'bg-BG': /^(\+?359|0)?8[789]\d{7}$/,
'bg-BG': /^(\+?359|0)?(8[789]|98)\d{7}$/,
'bn-BD': /^(\+?880|0)1[13456789][0-9]{8}$/,
'ca-AD': /^(\+376)?[346]\d{5}$/,
'cs-CZ': /^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,
Expand Down
26 changes: 7 additions & 19 deletions test/validators.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7784,13 +7784,20 @@ describe('Validators', () => {
'13520459',
'85479520',
],
},
{

},
Comment on lines +7787 to 7790
Copy link
Preview

Copilot AI Sep 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty test object with no locale, valid, or invalid properties will cause test failures. This should be removed.

Copilot uses AI. Check for mistakes.

{
locale: 'bg-BG',
valid: [
'+359897123456',
'+359898888888',
'0897123123',
'+359988123456',
'0988123456',
'0989123123',
'+359981234567',
],
invalid: [
'',
Expand All @@ -7800,25 +7807,6 @@ describe('Validators', () => {
'12125559999',
],
},
{
locale: 'bn-BD',
valid: [
'+8801794626846',
'01399098893',
'8801671163269',
'01717112029',
'8801898765432',
'+8801312345678',
'01494676946',
],
invalid: [
'',
'0174626346',
'017943563469',
'18001234567',
'0131234567',
],
},
{
locale: 'bs-BA',
valid: [
Expand Down