diff --git a/src/lib/isMobilePhone.js b/src/lib/isMobilePhone.js index aabd37512..8b56b769f 100644 --- a/src/lib/isMobilePhone.js +++ b/src/lib/isMobilePhone.js @@ -95,7 +95,7 @@ const phones = { 'mz-MZ': /^(\+?258)?8[234567]\d{7}$/, 'nb-NO': /^(\+?47)?[49]\d{7}$/, 'ne-NP': /^(\+?977)?9[78]\d{8}$/, - 'nl-BE': /^(\+?32|0)4?\d{8}$/, + 'nl-BE': /^(\+?32|0)4\d{8}$/, 'nl-NL': /^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/, 'nn-NO': /^(\+?47)?[49]\d{7}$/, 'pl-PL': /^(\+?48)? ?[5-8]\d ?\d{3} ?\d{2} ?\d{2}$/, diff --git a/test/validators.js b/test/validators.js index 13e066741..e8b6af96c 100644 --- a/test/validators.js +++ b/test/validators.js @@ -7389,9 +7389,9 @@ describe('Validators', () => { '0470123456', '+32470123456', '32470123456', - '021234567', - '+3221234567', - '3221234567', + '0421234567', + '+32421234567', + '32421234567', ], invalid: [ '12345', @@ -7403,6 +7403,9 @@ describe('Validators', () => { '0212345678', '+320212345678', '320212345678', + '021234567', + '+3221234567', + '3221234567', ], }, { @@ -7411,9 +7414,9 @@ describe('Validators', () => { '0470123456', '+32470123456', '32470123456', - '021234567', - '+3221234567', - '3221234567', + '0421234567', + '+32421234567', + '32421234567', ], invalid: [ '12345', @@ -7425,6 +7428,9 @@ describe('Validators', () => { '0212345678', '+320212345678', '320212345678', + '021234567', + '+3221234567', + '3221234567', ], }, {