validator.js icon indicating copy to clipboard operation
validator.js copied to clipboard

Need to add validation for ro-MD

Open mik7up opened this issue 4 years ago • 2 comments

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 avatar Feb 11 '22 15:02 mik7up

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

mik7up avatar Feb 17 '22 13:02 mik7up

@mik7up PRS are welcome

rubiin avatar Jul 18 '22 12:07 rubiin

@rubiin is ok if I work on this?

MatteoPierro avatar Oct 03 '22 17:10 MatteoPierro

@MatteoPierro Sure

rubiin avatar Oct 05 '22 15:10 rubiin

@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? 🙏

MatteoPierro avatar Oct 07 '22 13:10 MatteoPierro

will do

rubiin avatar Oct 08 '22 09:10 rubiin