Skip to content

Commit 7570197

Browse files
Add phone validation for Tango country codes
1 parent 7fdc788 commit 7570197

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/lib/isMobilePhone.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ const phones = {
6767
'en-RW': /^(\+?250|0)?[7]\d{8}$/,
6868
'en-SG': /^(\+65)?[3689]\d{7}$/,
6969
'en-SL': /^(\+?232|0)\d{8}$/,
70+
'en-TO': /^(\+?676)?[0-9]{5,7}$/,
7071
'en-TZ': /^(\+?255|0)?[67]\d{8}$/,
7172
'en-UG': /^(\+?256|0)?[7]\d{8}$/,
7273
'en-US': /^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,

0 commit comments

Comments
 (0)