Skip to content

Commit f8b50a5

Browse files
authored
chore: update meta and tests (RU) for v9.0.24 (#33)
1 parent 1b31708 commit f8b50a5

File tree

2 files changed

+30
-28
lines changed

2 files changed

+30
-28
lines changed

server/metadata/metadata.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -9178,7 +9178,7 @@
91789178
[
91799179
null,
91809180
null,
9181-
"(?:[27]\\d{3}|8776)\\d{4}",
9181+
"8776\\d{4}|(?:[27]\\d|61)\\d{6}",
91829182
null,
91839183
null,
91849184
null,
@@ -9192,7 +9192,7 @@
91929192
[
91939193
null,
91949194
null,
9195-
"2[12]\\d{6}",
9195+
"(?:2[12]|61)\\d{6}",
91969196
null,
91979197
null,
91989198
null,
@@ -9288,7 +9288,7 @@
92889288
"(\\d{2})(\\d{2})(\\d{2})(\\d{2})",
92899289
"$1 $2 $3 $4",
92909290
[
9291-
"[278]"
9291+
"[26-8]"
92929292
]
92939293
]
92949294
],
@@ -22075,7 +22075,7 @@
2207522075
[
2207622076
null,
2207722077
null,
22078-
"(?:[34]\\d|5[56])\\d{6}",
22078+
"(?:[34]\\d|5[568])\\d{6}",
2207922079
null,
2208022080
null,
2208122081
null,
@@ -28692,7 +28692,7 @@
2869228692
[
2869328693
null,
2869428694
null,
28695-
"(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",
28695+
"8\\d{13}|[78]\\d{9}",
2869628696
null,
2869728697
null,
2869828698
null,
@@ -28712,7 +28712,7 @@
2871228712
[
2871328713
null,
2871428714
null,
28715-
"(?:33622|7(?:1(?:0(?:[23]\\d|4[0-3]|59|63)|1(?:[23]\\d|4[0-79]|59)|2(?:[23]\\d|59)|3(?:2\\d|3[0-79]|4[0-35-9]|59)|4(?:[24]\\d|3[013-9]|5[1-9]|97)|5(?:2\\d|3[1-9]|4[0-7]|59)|6(?:[2-4]\\d|5[19]|61)|72\\d|8(?:[27]\\d|3[1-46-9]|4[0-5]|59))|2(?:1(?:[23]\\d|4[46-9]|5[3469])|2(?:2\\d|3[0679]|46|5[12679])|3(?:[2-4]\\d|5[139])|4(?:2\\d|3[1-35-9]|59)|5(?:[23]\\d|4[0-8]|59|61)|6(?:2\\d|3[1-9]|4[0-4]|59)|7(?:[2379]\\d|40|5[279])|8(?:[23]\\d|4[0-3]|59)|9(?:2\\d|3[124578]|59))))\\d{5}",
28715+
"7(?:1(?:0(?:[23]\\d|4[0-3]|59|63)|1(?:[23]\\d|4[0-79]|59)|2(?:[23]\\d|59)|3(?:2\\d|3[0-79]|4[0-35-9]|59)|4(?:[24]\\d|3[013-9]|5[1-9]|97)|5(?:2\\d|3[1-9]|4[0-7]|59)|6(?:[2-4]\\d|5[19]|61)|72\\d|8(?:[27]\\d|3[1-46-9]|4[0-5]|59))|2(?:1(?:[23]\\d|4[46-9]|5[3469])|2(?:2\\d|3[0679]|46|5[12679])|3(?:[2-4]\\d|5[139])|4(?:2\\d|3[1-35-9]|59)|5(?:[23]\\d|4[0-8]|59|61)|6(?:2\\d|3[1-9]|4[0-4]|59)|7(?:[2379]\\d|40|5[279])|8(?:[23]\\d|4[0-3]|59)|9(?:2\\d|3[124578]|59)))\\d{5}",
2871628716
null,
2871728717
null,
2871828718
null,
@@ -28834,7 +28834,7 @@
2883428834
]
2883528835
],
2883628836
null,
28837-
"33622|7",
28837+
"7",
2883828838
[
2883928839
null,
2884028840
null,
@@ -30629,7 +30629,7 @@
3062930629
[
3063030630
null,
3063130631
null,
30632-
"6(?:[269][18]|5[1568]|7[189]|81)\\d{6}",
30632+
"6(?:[26][18]|5[1568]|7[189]|81|9[128])\\d{6}",
3063330633
null,
3063430634
null,
3063530635
null,
@@ -30762,7 +30762,17 @@
3076230762
"(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})",
3076330763
"$1 $2 $3 $4",
3076430764
[
30765-
"2(?:[0367]|4[3-8])"
30765+
"20"
30766+
],
30767+
null,
30768+
"$CC $1"
30769+
],
30770+
[
30771+
null,
30772+
"(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})",
30773+
"$1 $2 $3 $4",
30774+
[
30775+
"[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"
3076630776
],
3076730777
null,
3076830778
"$CC $1"
@@ -30802,17 +30812,7 @@
3080230812
"(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})",
3080330813
"$1 $2 $3 $4 $5",
3080430814
[
30805-
"2(?:[0367]|4[3-8])"
30806-
],
30807-
null,
30808-
"$CC $1"
30809-
],
30810-
[
30811-
null,
30812-
"(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})",
30813-
"$1 $2 $3 $4",
30814-
[
30815-
"[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"
30815+
"20"
3081630816
],
3081730817
null,
3081830818
"$CC $1"
@@ -40762,7 +40762,7 @@
4076240762
[
4076340763
null,
4076440764
null,
40765-
"2131[89]\\d{4}|21(?:1[013-5]|2\\d|3[2-9])\\d{5}|(?:45|5[0137]|6[069]|7[2389]|88)\\d{7}",
40765+
"21(?:1[013-5]|2\\d|3[1-9])\\d{5}|(?:45|5[0137]|6[069]|7[2389]|88)\\d{7}",
4076640766
null,
4076740767
null,
4076840768
null,
@@ -43252,7 +43252,7 @@
4325243252
[
4325343253
null,
4325443254
null,
43255-
"336(?:[013-9]\\d|2[013-9])\\d{5}|(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}",
43255+
"(?:3(?:0[12]|36|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}",
4325643256
null,
4325743257
null,
4325843258
null,
@@ -43496,7 +43496,7 @@
4349643496
]
4349743497
],
4349843498
1,
43499-
null,
43499+
"[3489]",
4350043500
[
4350143501
null,
4350243502
null,
@@ -45055,7 +45055,7 @@
4505545055
[
4505645056
null,
4505745057
null,
45058-
"89(?:8[02-9]|9[0-5])\\d{4}|(?:8(?:0[1-9]|[1-8]\\d|9[0-7])|9[0-8]\\d)\\d{5}",
45058+
"89(?:8[02-9]|9[0-6])\\d{4}|(?:8(?:0[1-9]|[1-8]\\d|9[0-7])|9[0-8]\\d)\\d{5}",
4505945059
null,
4506045060
null,
4506145061
null,
@@ -51252,7 +51252,7 @@
5125251252
[
5125351253
null,
5125451254
null,
51255-
"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",
51255+
"868800\\d{4}|8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",
5125651256
null,
5125751257
null,
5125851258
null,
@@ -51899,7 +51899,7 @@
5189951899
[
5190051900
null,
5190151901
null,
51902-
"(?:6[1-35-9]|7[13-9])\\d{7}",
51902+
"(?:6[1-35-9]|7[013-9])\\d{7}",
5190351903
null,
5190451904
null,
5190551905
null,

test/test-loadMeta.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22

33
var assert = require('assert'),
4+
// util = require('util'),
45
loadMeta = require('../server').loadMeta;
56

67
describe('Generic metadata loading tests', function () {
@@ -19,6 +20,7 @@ describe('Generic metadata loading tests', function () {
1920

2021
it('Should load metadata for RU', function () {
2122
var meta = loadMeta(['RU']);
23+
// console.log('meta: ', util.inspect(meta, { depth: null }));
2224
assert.deepEqual(meta, {
2325
regionCodes: ['RU'],
2426
countryCodeToRegionCodeMap: { '7': ['RU'] },
@@ -41,7 +43,7 @@ describe('Generic metadata loading tests', function () {
4143
[
4244
null,
4345
null,
44-
'336(?:[013-9]\\d|2[013-9])\\d{5}|(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}',
46+
'(?:3(?:0[12]|36|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}',
4547
null,
4648
null,
4749
null,
@@ -255,7 +257,7 @@ describe('Generic metadata loading tests', function () {
255257
[-1]
256258
],
257259
1,
258-
null,
260+
'[3489]',
259261
[
260262
null,
261263
null,

0 commit comments

Comments
 (0)