File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ const phones = {
8585 'fr-GF' : / ^ ( \+ ? 5 9 4 | 0 | 0 0 5 9 4 ) [ 6 7 ] \d { 8 } $ / ,
8686 'fr-GP' : / ^ ( \+ ? 5 9 0 | 0 | 0 0 5 9 0 ) [ 6 7 ] \d { 8 } $ / ,
8787 'fr-MQ' : / ^ ( \+ ? 5 9 6 | 0 | 0 0 5 9 6 ) [ 6 7 ] \d { 8 } $ / ,
88+ 'fr-PF' : / ^ ( \+ ? 6 8 9 ) ? 8 [ 7 8 9 ] \d { 6 } $ / ,
8889 'fr-RE' : / ^ ( \+ ? 2 6 2 | 0 | 0 0 2 6 2 ) [ 6 7 ] \d { 8 } $ / ,
8990 'he-IL' : / ^ ( \+ 9 7 2 | 0 ) ( [ 2 3 4 8 9 ] | 5 [ 0 1 2 3 4 5 6 8 9 ] | 7 7 ) [ 1 - 9 ] \d { 6 } $ / ,
9091 'hu-HU' : / ^ ( \+ ? 3 6 | 0 6 ) ( 2 0 | 3 0 | 3 1 | 5 0 | 7 0 ) \d { 7 } $ / ,
Original file line number Diff line number Diff line change @@ -6885,6 +6885,28 @@ describe('Validators', () => {
68856885 '+26261245789' ,
68866886 ] ,
68876887 } ,
6888+ {
6889+ locale : 'fr-PF' ,
6890+ valid : [
6891+ '87123456' ,
6892+ '88123456' ,
6893+ '89123456' ,
6894+ '+68987123456' ,
6895+ '+68988123456' ,
6896+ '+68989123456' ,
6897+ '68987123456' ,
6898+ '68988123456' ,
6899+ '68989123456' ,
6900+ ] ,
6901+ invalid : [
6902+ '7123456' ,
6903+ '86123456' ,
6904+ '87 12 34 56' ,
6905+ 'definitely not a number' ,
6906+ '01+68988123456' ,
6907+ '6898912345' ,
6908+ ] ,
6909+ } ,
68886910 {
68896911 locale : 'ka-GE' ,
68906912 valid : [
You can’t perform that action at this time.
0 commit comments