feat: add support for DR Congo mobile phone validation (fr-CD) by coolbeatz71 · Pull Request #2041 · validatorjs/validator.js
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @pano9000, nice catch! thx for the feedback.
You should also note that: the above document is very old 😂(from 2009). Some MNOs in this list are no longer operational. And there are even new operators with different numbering structure.
But I think I can come up with something like /^(\+?243|0)?(8|9)(0|1|2|4|7|8\9)\d{7}$/, so telephones such as +243 902 XXXXXXX can pass the regex.
What do you think about it?