File tree 6 files changed +479
-120
lines changed
test.in/awesome-phonenumber
6 files changed +479
-120
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,8 @@ const pn = {
78
78
possibility: ' is-possible' ,
79
79
regionCode: ' SE' ,
80
80
possible: true ,
81
+ shortPossible: false ,
82
+ shortValid: false ,
81
83
canBeInternationallyDialled: true ,
82
84
type: ' mobile' ,
83
85
countryCode: 46 ,
@@ -105,6 +107,8 @@ interface ParsedPhoneNumberValid {
105
107
possibility: PhoneNumberPossibility ; // a string union, see below
106
108
regionCode: string ;
107
109
possible: boolean ;
110
+ shortPossible: boolean ;
111
+ shortValid: boolean ;
108
112
canBeInternationallyDialled: boolean ;
109
113
type: PhoneNumberTypes ; // a string union, see below
110
114
countryCode: number ;
@@ -121,10 +125,14 @@ interface ParsedPhoneNumberInvalid {
121
125
122
126
possible: false ;
123
127
possibility: ' invalid' ;
128
+ shortPossible: boolean ;
129
+ shortValid: boolean ;
124
130
error? : unknown ;
125
131
};
126
132
```
127
133
134
+ Note that an incorrect (invalid) phone number can still be a valid _ short number_ for the given region.
135
+
128
136
129
137
## API
130
138
You can’t perform that action at this time.
0 commit comments