validatorjs / validator.js

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

Need to add validation for ro-MD #1931

Open mik7up opened 2 years ago

mik7up commented 2 years ago

Need to add validation for Moldova republic of mobile phone numbers. https://github.com/validatorjs/validator.js/edit/master/src/lib/isMobilePhone.js

'ro-MD': /^(\+?373|0)((6(0|1|2|6|7|8|9))|(7(7|8|9)))\d{6}$/

https://www.localeplanet.com/icu/ro-MD/index.html

60 xxxxxx — Orange 61 xxxxxx — Orange 62 xxxxxx — Orange 66 xxxxxx — Unité 67 xxxxxx — Unité 68 xxxxxx — Orange 69 xxxxxx — Orange 78 xxxxxx — Moldcell 79 xxxxxx — Moldcell 77 xxxxxx — IDC

mik7up commented 2 years ago

https://github.com/validatorjs/validator.js/issues/1931

rubiin commented 2 years ago

@mik7up PRS are welcome

MatteoPierro commented 2 years ago

@rubiin is ok if I work on this?

rubiin commented 2 years ago

@MatteoPierro Sure

MatteoPierro commented 2 years ago

@rubiin I made the PR https://github.com/validatorjs/validator.js/pull/2062 If you decide to accept it, could you please add the label hacktoberfest-accepted? 🙏

rubiin commented 2 years ago

will do