Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 26 additions & 26 deletions server/metadata/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -9178,7 +9178,7 @@
[
null,
null,
"(?:[27]\\d{3}|8776)\\d{4}",
"8776\\d{4}|(?:[27]\\d|61)\\d{6}",
null,
null,
null,
Expand All @@ -9192,7 +9192,7 @@
[
null,
null,
"2[12]\\d{6}",
"(?:2[12]|61)\\d{6}",
null,
null,
null,
Expand Down Expand Up @@ -9288,7 +9288,7 @@
"(\\d{2})(\\d{2})(\\d{2})(\\d{2})",
"$1 $2 $3 $4",
[
"[278]"
"[26-8]"
]
]
],
Expand Down Expand Up @@ -22075,7 +22075,7 @@
[
null,
null,
"(?:[34]\\d|5[56])\\d{6}",
"(?:[34]\\d|5[568])\\d{6}",
null,
null,
null,
Expand Down Expand Up @@ -28692,7 +28692,7 @@
[
null,
null,
"(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",
"8\\d{13}|[78]\\d{9}",
null,
null,
null,
Expand All @@ -28712,7 +28712,7 @@
[
null,
null,
"(?: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}",
"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}",
null,
null,
null,
Expand Down Expand Up @@ -28834,7 +28834,7 @@
]
],
null,
"33622|7",
"7",
[
null,
null,
Expand Down Expand Up @@ -30629,7 +30629,7 @@
[
null,
null,
"6(?:[269][18]|5[1568]|7[189]|81)\\d{6}",
"6(?:[26][18]|5[1568]|7[189]|81|9[128])\\d{6}",
null,
null,
null,
Expand Down Expand Up @@ -30762,7 +30762,17 @@
"(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})",
"$1 $2 $3 $4",
[
"2(?:[0367]|4[3-8])"
"20"
],
null,
"$CC $1"
],
[
null,
"(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})",
"$1 $2 $3 $4",
[
"[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"
],
null,
"$CC $1"
Expand Down Expand Up @@ -30802,17 +30812,7 @@
"(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})",
"$1 $2 $3 $4 $5",
[
"2(?:[0367]|4[3-8])"
],
null,
"$CC $1"
],
[
null,
"(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})",
"$1 $2 $3 $4",
[
"[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"
"20"
],
null,
"$CC $1"
Expand Down Expand Up @@ -40762,7 +40762,7 @@
[
null,
null,
"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}",
"21(?:1[013-5]|2\\d|3[1-9])\\d{5}|(?:45|5[0137]|6[069]|7[2389]|88)\\d{7}",
null,
null,
null,
Expand Down Expand Up @@ -43252,7 +43252,7 @@
[
null,
null,
"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}",
"(?: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}",
null,
null,
null,
Expand Down Expand Up @@ -43496,7 +43496,7 @@
]
],
1,
null,
"[3489]",
[
null,
null,
Expand Down Expand Up @@ -45055,7 +45055,7 @@
[
null,
null,
"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}",
"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}",
null,
null,
null,
Expand Down Expand Up @@ -51252,7 +51252,7 @@
[
null,
null,
"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",
"868800\\d{4}|8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",
null,
null,
null,
Expand Down Expand Up @@ -51899,7 +51899,7 @@
[
null,
null,
"(?:6[1-35-9]|7[13-9])\\d{7}",
"(?:6[1-35-9]|7[013-9])\\d{7}",
null,
null,
null,
Expand Down
6 changes: 4 additions & 2 deletions test/test-loadMeta.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

var assert = require('assert'),
// util = require('util'),
loadMeta = require('../server').loadMeta;

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

it('Should load metadata for RU', function () {
var meta = loadMeta(['RU']);
// console.log('meta: ', util.inspect(meta, { depth: null }));
assert.deepEqual(meta, {
regionCodes: ['RU'],
countryCodeToRegionCodeMap: { '7': ['RU'] },
Expand All @@ -41,7 +43,7 @@ describe('Generic metadata loading tests', function () {
[
null,
null,
'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}',
'(?: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}',
null,
null,
null,
Expand Down Expand Up @@ -255,7 +257,7 @@ describe('Generic metadata loading tests', function () {
[-1]
],
1,
null,
'[3489]',
[
null,
null,
Expand Down