feat: (isMobilePhone) Add mobile phone validation for Cameroon (fr-CM) by tarob0ba · Pull Request #1772 · validatorjs/validator.js

added 4 commits

October 10, 2021 19:20
I have added a regex for validating Cameroonian mobile numbers which should work. I'm not super comfortable with regular expressions, so if I have screwed something up, please let me know. I have done some basic testing and it has functioned fine thus far.

@tarob0ba

Fix my sloppy tests. I'm really tired and probably should not be working on this, but I accidentally added an extra digit while typing.

@tarob0ba tarob0ba changed the title feat(isMobilePhone): Add mobile phone validation for Cameroon (fr-CM) feat: (isMobilePhone) Add mobile phone validation for Cameroon (fr-CM)

Oct 11, 2021

tux-tn

Add mobile prefix (6) to regex, remove space allowance, and optimize regex

@tarob0ba

@tarob0ba

@tarob0ba

tux-tn

tux-tn previously approved these changes Oct 20, 2021

@tarob0ba

profnandaa pushed a commit that referenced this pull request

Oct 31, 2021
* Add Cameroon validation regex

I have added a regex for validating Cameroonian mobile numbers which should work. I'm not super comfortable with regular expressions, so if I have screwed something up, please let me know. I have done some basic testing and it has functioned fine thus far.

* Update README to include fr-CM in isMobilePhone

* Add (very) basic testing for Cameroonian mobile number

* Fix missing brace (whoops!)

* Fix commas (I hope)

* Fix sloppy tests

Fix my sloppy tests. I'm really tired and probably should not be working on this, but I accidentally added an extra digit while typing.

* Update regex for correctness

Add mobile prefix (6) to regex, remove space allowance, and optimize regex

* Update tests for correctness

* Remove invalid space

Sorry!

* Rerun failed tests (internal server error)

profnandaa pushed a commit that referenced this pull request

Oct 31, 2021
* Add Cameroon validation regex

I have added a regex for validating Cameroonian mobile numbers which should work. I'm not super comfortable with regular expressions, so if I have screwed something up, please let me know. I have done some basic testing and it has functioned fine thus far.

* Update README to include fr-CM in isMobilePhone

* Add (very) basic testing for Cameroonian mobile number

* Fix missing brace (whoops!)

* Fix commas (I hope)

* Fix sloppy tests

Fix my sloppy tests. I'm really tired and probably should not be working on this, but I accidentally added an extra digit while typing.

* Update regex for correctness

Add mobile prefix (6) to regex, remove space allowance, and optimize regex

* Update tests for correctness

* Remove invalid space

Sorry!

* Rerun failed tests (internal server error)