File tree 2 files changed +28
-9
lines changed 2 files changed +28
-9
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import assertString from './util/assertString';
2
2
3
3
/* eslint-disable max-len */
4
4
const phones = {
5
- 'am-AM' : / ^ ( \+ ? 3 7 4 | 0 ) ( ( 1 0 | [ 9 | 7 ] [ 0 - 9 ] ) \d { 6 } $ | [ 2 - 4 ] \d { 7 } $ ) / ,
5
+ 'am-AM' : / ^ ( \+ ? 3 7 4 | 0 ) ( 3 3 | 4 [ 1 3 4 ] | 5 5 | 7 7 | 8 8 | 9 [ 1 3 - 6 8 9 ] ) \d { 6 } $ / ,
6
6
'ar-AE' : / ^ ( ( \+ ? 9 7 1 ) | 0 ) ? 5 [ 0 2 4 5 6 8 ] \d { 7 } $ / ,
7
7
'ar-BH' : / ^ ( \+ ? 9 7 3 ) ? ( 3 | 6 ) \d { 7 } $ / ,
8
8
'ar-DZ' : / ^ ( \+ ? 2 1 3 | 0 ) ( 5 | 6 | 7 ) \d { 8 } $ / ,
Original file line number Diff line number Diff line change @@ -6718,20 +6718,39 @@ describe('Validators', () => {
6718
6718
{
6719
6719
locale : 'am-AM' ,
6720
6720
valid : [
6721
- '+37410324123' ,
6722
- '+37422298765' ,
6723
- '+37431276521' ,
6724
- '022698763' ,
6725
- '37491987654' ,
6726
- '+37494567890' ,
6721
+ '+37433123456' ,
6722
+ '+37441123456' ,
6723
+ '+37443123456' ,
6724
+ '+37444123456' ,
6725
+ '+37455123456' ,
6726
+ '+37477123456' ,
6727
+ '+37488123456' ,
6728
+ '+37491123456' ,
6729
+ '+37493123456' ,
6730
+ '+37494123456' ,
6731
+ '+37495123456' ,
6732
+ '+37496123456' ,
6733
+ '+37498123456' ,
6734
+ '+37499123456' ,
6735
+ '055123456' ,
6736
+ '37455123456' ,
6727
6737
] ,
6728
6738
invalid : [
6729
6739
'12345' ,
6730
- '+37411498855 ' ,
6731
- '+37411498123 ' ,
6740
+ '+37403498855 ' ,
6741
+ '+37416498123 ' ,
6732
6742
'05614988556' ,
6733
6743
'' ,
6734
6744
'37456789000' ,
6745
+ '37486789000' ,
6746
+ '+37431312345' ,
6747
+ '+37430312345' ,
6748
+ '+37460123456' ,
6749
+ '+37410324123' ,
6750
+ '+37422298765' ,
6751
+ '+37431276521' ,
6752
+ '022698763' ,
6753
+ '+37492123456' ,
6735
6754
] ,
6736
6755
} ,
6737
6756
{
You can’t perform that action at this time.
0 commit comments