ansman/validate.js

south african mobile number regex

Closed this issue · 3 comments

Hi guys,
Just an updated regex for en-ZA mobile numbers:
'en-ZA': /^(\+?27|0)[6-8][0-9]{8}$/,
Not sure if I should do a full pull request or how this generally works, but this regex accurately checks for mobile numbers including area(or in this case network) code instead of just length and country code.

validate.js does not have a phone number validator

Is there a way we can make this a feature request?

With everyday day more mobile users, it would be a great addition to support mobile phone number in validate.js. What do you think?