diff --git a/src/lib/isMobilePhone.js b/src/lib/isMobilePhone.js index ed1f6d277..a551ba095 100644 --- a/src/lib/isMobilePhone.js +++ b/src/lib/isMobilePhone.js @@ -33,7 +33,7 @@ const phones = { 'en-AU': /^(\+?61|0)4\d{8}$/, 'en-GB': /^(\+?44|0)7\d{9}$/, 'en-GG': /^(\+?44|0)1481\d{6}$/, - 'en-GH': /^(\+233|0)(20|50|24|54|27|57|26|56|23|28)\d{7}$/, + 'en-GH': /^(\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\d{7}$/, 'en-HK': /^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/, 'en-MO': /^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/, 'en-IE': /^(\+?353|0)8[356789]\d{7}$/, diff --git a/test/validators.js b/test/validators.js index 1f92e1480..f30f9caf6 100644 --- a/test/validators.js +++ b/test/validators.js @@ -6011,6 +6011,8 @@ describe('Validators', () => { '+233562345671', '+233232345671', '+233282345671', + '+233592349493', + '0550298219', ], invalid: [ '082123',