Commit f2381e0
authored
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 5773869 commit f2381e0
2 files changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7568 | 7568 | | |
7569 | 7569 | | |
7570 | 7570 | | |
| 7571 | + | |
| 7572 | + | |
| 7573 | + | |
| 7574 | + | |
| 7575 | + | |
| 7576 | + | |
| 7577 | + | |
| 7578 | + | |
| 7579 | + | |
| 7580 | + | |
| 7581 | + | |
| 7582 | + | |
| 7583 | + | |
| 7584 | + | |
| 7585 | + | |
7571 | 7586 | | |
7572 | 7587 | | |
7573 | 7588 | | |
| |||
0 commit comments