File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ const phones = {
115115 'uk-UA' : / ^ ( \+ ? 3 8 | 8 ) ? 0 \d { 9 } $ / ,
116116 'uz-UZ' : / ^ ( \+ ? 9 9 8 ) ? ( 6 [ 1 2 5 - 7 9 ] | 7 [ 1 - 6 9 ] | 8 8 | 9 \d ) \d { 7 } $ / ,
117117 'vi-VN' : / ^ ( ( \+ ? 8 4 ) | 0 ) ( ( 3 ( [ 2 - 9 ] ) ) | ( 5 ( [ 2 5 6 8 9 ] ) ) | ( 7 ( [ 0 | 6 - 9 ] ) ) | ( 8 ( [ 1 - 9 ] ) ) | ( 9 ( [ 0 - 9 ] ) ) ) ( [ 0 - 9 ] { 7 } ) $ / ,
118- 'zh-CN' : / ^ ( ( \+ | 0 0 ) 8 6 ) ? 1 ( [ 3 4 5 6 7 8 9 ] [ 0 - 9 ] | 4 [ 5 7 9 ] | 6 [ 2 5 6 7 ] | 7 [ 0 1 2 3 5 6 7 8 ] | 9 [ 0 1 2 3 5 6 7 8 9 ] ) [ 0 - 9 ] { 8 } $ / ,
118+ 'zh-CN' : / ^ ( ( \+ | 0 0 ) 8 6 ) ? ( 1 [ 3 - 9 ] | 9 [ 2 8 ] ) \d { 9 } $ / ,
119119 'zh-TW' : / ^ ( \+ ? 8 8 6 \- ? | 0 ) ? 9 \d { 8 } $ / ,
120120} ;
121121/* eslint-enable max-len */
Original file line number Diff line number Diff line change @@ -6183,19 +6183,28 @@ describe('Validators', () => {
61836183 {
61846184 locale : 'zh-CN' ,
61856185 valid : [
6186- '15323456787' ,
61876186 '13523333233' ,
6188- '13898728332' ,
6187+ '13838389438' ,
6188+ '14899230918' ,
6189+ '14999230918' ,
6190+ '15323456787' ,
6191+ '15052052020' ,
6192+ '16237108167' ,
6193+ '008616238234822' ,
6194+ '+8616238234822' ,
6195+ '16565600001' ,
6196+ '17269427292' ,
6197+ '17469427292' ,
6198+ '18199617480' ,
6199+ '19151751717' ,
6200+ '19651751717' ,
61896201 '+8613238234822' ,
61906202 '+8613487234567' ,
61916203 '+8617823492338' ,
61926204 '+8617823492338' ,
6193- '16637108167' ,
61946205 '+8616637108167' ,
61956206 '+8616637108167' ,
61966207 '+8616712341234' ,
6197- '008618812341234' ,
6198- '008618812341234' ,
61996208 '+8619912341234' ,
62006209 '+8619812341234' ,
62016210 '+8619712341234' ,
@@ -6204,17 +6213,25 @@ describe('Validators', () => {
62046213 '+8619312341234' ,
62056214 '+8619212341234' ,
62066215 '+8619112341234' ,
6207- '17269427292' ,
6208- '16565600001' ,
62096216 '+8617269427292' ,
6217+ '008618812341234' ,
6218+ '008618812341234' ,
62106219 '008617269427292' ,
6211- '16238234822' ,
6212- '008616238234822' ,
6213- '+8616238234822' ,
6220+ // Reserve number segments in the future.
6221+ '92138389438' ,
6222+ '+8692138389438' ,
6223+ '008692138389438' ,
6224+ '98199649964' ,
6225+ '+8698099649964' ,
6226+ '008698099649964' ,
62146227 ] ,
62156228 invalid : [
62166229 '12345' ,
62176230 '' ,
6231+ '12038389438' ,
6232+ '12838389438' ,
6233+ '013838389438' ,
6234+ '+86-13838389438' ,
62186235 '+08613811211114' ,
62196236 '+008613811211114' ,
62206237 '08613811211114' ,
You can’t perform that action at this time.
0 commit comments