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

should add support for DR Congo mobile phone validation

Open coolbeatz71 opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe.

I just realized there is no support for a bunch of local phone numbers in Africa (most of them are french speaking), such as RD Congo, Congo Republic, Central African Republic, etc.

Describe the solution you'd like

The ICU country code for DR Congo is fr-CD and the regex should be /^(\+?243|0)?(8|9)\d{8}$/. I can raise a PR for this one. But I need to make more research on other french-speaking African countries.

coolbeatz71 avatar Sep 14 '22 13:09 coolbeatz71