validatorjs / validator.js

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

Valid phone number from Lebanon #1414

Closed icyice0217 closed 3 years ago

icyice0217 commented 4 years ago

Hello everyone, we need add 'ar-LB' locale in isMobilePhone.js lib to do validation for Lebanon mobile phones. Country code: +961 format mobile phones: ( [+961] )? ( [3] | [7X] | [81] ) [XXXXXX] [X] phone number: 6 or 7 digits I've made an initial expression as: /^(\+?961)?(3|7\d|81)\d{6}$/ Please improve the expression and add it into lib for more info about Libya phone codes see : areaphonecodes Best Regards

rubiin commented 4 years ago

this one as well @profnandaa

profnandaa commented 4 years ago

@rubiin -- sure, please go for them. Thanks for the help! 🎉

rubiin commented 4 years ago

@rubiin -- sure, please go for them. Thanks for the help!

I will go through them asap

parasg1999 commented 4 years ago

Hey, can I take this issue since there hasn't been any activity here for a while?

rubiin commented 4 years ago

This is in queue, waiting for the last pr to be merged

profnandaa commented 4 years ago

@rubiin -- BTW, you can just raise the PR separately, you don't have to wait for the other since it's not depended on it. Just make sure you branch off from the latest master and not your previous.

rubiin commented 4 years ago

@rubiin -- BTW, you can just raise the PR separately, you don't have to wait for the other since it's not depended on it. Just make sure you branch off from the latest master and not your previous.

let me try

rubiin commented 3 years ago

can be closed @profnandaa in favor of pr https://github.com/validatorjs/validator.js/pull/1473

tux-tn commented 3 years ago

closed in #1473