diff --git a/src/lib/isMobilePhone.js b/src/lib/isMobilePhone.js index 1f5481fc7..2e4fe74d3 100644 --- a/src/lib/isMobilePhone.js +++ b/src/lib/isMobilePhone.js @@ -4,7 +4,7 @@ import assertString from './util/assertString'; const phones = { 'ar-AE': /^((\+?971)|0)?5[024568]\d{7}$/, 'ar-DZ': /^(\+?213|0)(5|6|7)\d{8}$/, - 'ar-EG': /^((\+?20)|0)?1[012]\d{8}$/, + 'ar-EG': /^((\+?20)|0)?1[0125]\d{8}$/, 'ar-IQ': /^(\+?964|0)?7[0-9]\d{8}$/, 'ar-JO': /^(\+?962|0)?7[789]\d{7}$/, 'ar-KW': /^(\+?965)[569]\d{7}$/, diff --git a/test/validators.js b/test/validators.js index 61ffbe479..dabe88cb3 100644 --- a/test/validators.js +++ b/test/validators.js @@ -3380,8 +3380,12 @@ describe('Validators', () => { '+201274652177', '+201280134679', '+201090124576', + '+201583728900', + '201599495596', '201090124576', '01090124576', + '01538920744', + '1593075993', '1090124576', ], invalid: [