validatorjs / validator.js

String validation
MIT License
23.12k stars 2.31k forks source link

fix isMobilePhone in Egypt #1045

Closed HeshamAbdElLatif closed 5 years ago

HeshamAbdElLatif commented 5 years ago

if phone number start with "015" it shoud be valid Check this https://en.wikipedia.org/wiki/Telephone_numbers_in_Egypt

profnandaa commented 5 years ago

Sure, PR welcome!

amrHassanAbdallah commented 5 years ago

I just checked/tested the regex for the 'ar-EG' for "015", it's there and working. This commit 8e02defd4b8b4938bf6d88fc5a41c099e29e8c5d already solved it.

profnandaa commented 5 years ago

Thanks for checking! 🙏

-na

On Sun, Jun 23, 2019 at 5:41 PM hesham notifications@github.com wrote:

Closed #1045 https://github.com/validatorjs/validator.js/issues/1045.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/validatorjs/validator.js/issues/1045?email_source=notifications&email_token=AAB7ZEONBSDDZGHASRI5D2DP36DSBA5CNFSM4HYYAPC2YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOSD6LP7Q#event-2432481278, or mute the thread https://github.com/notifications/unsubscribe-auth/AAB7ZELVBVTYMA5YL45BTTLP36DSBANCNFSM4HYYAPCQ .

-- Sent from a tiny device while on the move.