Commit 6cb7fd2
feat: (isMobilePhone): add Cameroon fr-CM locale (#1772)
* 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)1 parent 0799119 commit 6cb7fd2
2 files changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7592 | 7592 | | |
7593 | 7593 | | |
7594 | 7594 | | |
| 7595 | + | |
| 7596 | + | |
| 7597 | + | |
| 7598 | + | |
| 7599 | + | |
| 7600 | + | |
| 7601 | + | |
| 7602 | + | |
| 7603 | + | |
| 7604 | + | |
| 7605 | + | |
| 7606 | + | |
| 7607 | + | |
| 7608 | + | |
| 7609 | + | |
7595 | 7610 | | |
7596 | 7611 | | |
7597 | 7612 | | |
| |||
0 commit comments