telephone_number 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ac6f755e7ed1429677cd62bcc91b6aea527ff0e7
4
- data.tar.gz: 54044235d4b572d8502512d0f3f81ff57b5d56c3
3
+ metadata.gz: 5c5c17605b069fc444f7c3065f2cbd652885fbaf
4
+ data.tar.gz: 1af2c0e33b71605fc8655a8cb70293f63b5925a3
5
5
  SHA512:
6
- metadata.gz: a421d5686401c55ca60ea98c6dcbdd97562bd871d61084ac25a7869235913db2bee176d68a85a3675418fafd8dfb5441697ef0081e48328123360198be143a9c
7
- data.tar.gz: 30257046baba5a88b7267729bde90cda08914f8a1e81c0ede417e3e1b627041001187d289706ff103ef73cb9ba631164d0ea56bd2513fe98e8479afe4f1301e4
6
+ metadata.gz: 6ca1651565826518fb081373097a80aa0090b7cdacc6b1e4f3eab9356dd1472b01799cbdf849925e65061499949c87251b7fd217c848d6095053eeaf8a61c800
7
+ data.tar.gz: 44a17da250b5858306e0856bae41b266a21cb465e76ba10f82f548a96ad85b9a49b430e27ca9c3a8bcb9475fca1f2c8635ae050a6efba5253e2f36baee97a008
Binary file
@@ -91,7 +91,7 @@
91
91
  25111552|Filwha VI, Addis Ababa
92
92
  25111553|Filwha V, Addis Ababa
93
93
  25111554|Filwha VII, Addis Ababa
94
- 2511161|Bole I, Addis Ababa
94
+ 25111618|Bole I, Addis Ababa
95
95
  25111626|Bole Michael, Addis Ababa
96
96
  25111629|Gerji, Addis Ababa
97
97
  25111645|Yeka I, Addis Ababa
Binary file
@@ -25,7 +25,8 @@
25
25
  267319|Gaborone
26
26
  26735|Gaborone
27
27
  26736|Gaborone
28
- 26737|Gaborone
28
+ 267370|Gaborone
29
+ 267371|Gaborone
29
30
  267390|Gaborone
30
31
  267391|Gaborone
31
32
  267392|Gaborone
Binary file
@@ -28,6 +28,6 @@
28
28
  5343|Cienfuegos Province
29
29
  5345|Matanzas Province
30
30
  5346|Isle of Youth
31
- 5347|Havana Province
31
+ 5347|Mayabeque and Artemisa
32
32
  5348|Pinar del Río Province
33
33
  537|Havana City
Binary file
@@ -29,6 +29,7 @@
29
29
  88680|Pingtung
30
30
  886823|Kinmen
31
31
  886826|Wuqiu
32
+ 88683|Matsu
32
33
  88687|Pingtung
33
34
  88688|Pingtung
34
35
  88689|Taitung
Binary file
@@ -29,6 +29,7 @@
29
29
  88680|屏东
30
30
  886823|金门
31
31
  886826|乌丘
32
+ 88683|马祖
32
33
  88687|屏东
33
34
  88688|屏东
34
35
  88689|台东
Binary file
@@ -29,6 +29,7 @@
29
29
  88680|屏東
30
30
  886823|金門
31
31
  886826|烏坵
32
+ 88683|馬祖
32
33
  88687|屏東
33
34
  88688|屏東
34
35
  88689|臺東
Binary file
@@ -2441,7 +2441,7 @@
2441
2441
  [0-3]\d|
2442
2442
  4[047-9]|
2443
2443
  5[0-25-9]|
2444
- 6[6-9]|
2444
+ 6[06-9]|
2445
2445
  7[02-9]|
2446
2446
  8[0-2457-9]|
2447
2447
  9[017-9]
@@ -4638,6 +4638,7 @@
4638
4638
  )\d{6}
4639
4639
  </nationalNumberPattern>
4640
4640
  </generalDesc>
4641
+ <!-- Number range 373 is been supported based on user report and online evidence. -->
4641
4642
  <fixedLine>
4642
4643
  <possibleLengths national="7"/>
4643
4644
  <exampleNumber>2401234</exampleNumber>
@@ -4652,7 +4653,7 @@
4652
4653
  1[0-35-9]|
4653
4654
  55|
4654
4655
  [69]\d|
4655
- 7[01]
4656
+ 7[013]
4656
4657
  )|
4657
4658
  4(?:
4658
4659
  6[03]|
@@ -5197,7 +5198,7 @@
5197
5198
  [0-3]\d|
5198
5199
  4[047-9]|
5199
5200
  5[0-25-9]|
5200
- 6[6-9]|
5201
+ 6[06-9]|
5201
5202
  7[02-9]|
5202
5203
  8[0-2457-9]|
5203
5204
  9[017-9]
@@ -5524,8 +5525,8 @@
5524
5525
  <exampleNumber>01234567</exampleNumber>
5525
5526
  <nationalNumberPattern>
5526
5527
  (?:
5527
- [07][1-9]|
5528
- [45]\d|
5528
+ 0[1-9]|
5529
+ [457]\d|
5529
5530
  6[014-9]|
5530
5531
  8[4-9]
5531
5532
  )\d{6}
@@ -5650,7 +5651,7 @@
5650
5651
  </availableFormats>
5651
5652
  <generalDesc>
5652
5653
  <nationalNumberPattern>
5653
- 1230\d{7}|
5654
+ 12300\d{6}|
5654
5655
  6\d{9,10}|
5655
5656
  [2-9]\d{8}
5656
5657
  </nationalNumberPattern>
@@ -5670,15 +5671,14 @@
5670
5671
  already numbers with the prefix "23" are being added.
5671
5672
  See: http://www.gob.cl/especiales/informate-de-la-nueva-forma-de-marcar/
5672
5673
  http://www.subtel.cl/index.php?option=com_content&view=article&id=3081:&catid=3:noticias
5673
- Added prefixes 2323 and 2326 range based on online evidence. Added prefixes 2324, 2327
5674
- and 2328 based on user reports. -->
5674
+ Added 232[3-8] ranges based on online evidence. -->
5675
5675
  <fixedLine>
5676
5676
  <possibleLengths national="9"/>
5677
5677
  <exampleNumber>221234567</exampleNumber>
5678
5678
  <nationalNumberPattern>
5679
5679
  21962\d{4}|
5680
5680
  (?:
5681
- 232[0-46-8]|
5681
+ 232[0-8]|
5682
5682
  80[1-9]\d
5683
5683
  )\d{5}|
5684
5684
  (?:
@@ -5699,7 +5699,7 @@
5699
5699
  <nationalNumberPattern>
5700
5700
  21962\d{4}|
5701
5701
  (?:
5702
- 232[0-46-8]|
5702
+ 232[0-8]|
5703
5703
  80[1-9]\d
5704
5704
  )\d{5}|
5705
5705
  (?:
@@ -5721,9 +5721,9 @@
5721
5721
  <exampleNumber>800123456</exampleNumber>
5722
5722
  <nationalNumberPattern>
5723
5723
  (?:
5724
- 1230\d|
5725
- 800
5726
- )\d{6}
5724
+ 123|
5725
+ 8
5726
+ )00\d{6}
5727
5727
  </nationalNumberPattern>
5728
5728
  </tollFree>
5729
5729
  <!-- http://empresa.movistar.cl/nuestros_productos/soluciones_telefonia_ip/servicios/servicio_600.php -->
@@ -6973,7 +6973,10 @@
6973
6973
  <territory id="CU" countryCode="53" internationalPrefix="119" nationalPrefix="0">
6974
6974
  <availableFormats>
6975
6975
  <numberFormat pattern="(\d{2})(\d{4,6})" nationalPrefixFormattingRule="($NP$FG)">
6976
- <leadingDigits>[2-4]</leadingDigits>
6976
+ <leadingDigits>
6977
+ 2[1-4]|
6978
+ [34]
6979
+ </leadingDigits>
6977
6980
  <format>$1 $2</format>
6978
6981
  </numberFormat>
6979
6982
  <numberFormat pattern="(\d)(\d{6,7})" nationalPrefixFormattingRule="($NP$FG)">
@@ -6998,7 +7001,7 @@
6998
7001
  <nationalNumberPattern>
6999
7002
  (?:
7000
7003
  3[23]|
7001
- 4[78]
7004
+ 48
7002
7005
  )\d{4,6}|
7003
7006
  (?:
7004
7007
  31|
@@ -7006,7 +7009,7 @@
7006
7009
  )\d{6}|
7007
7010
  (?:
7008
7011
  2[1-4]|
7009
- 4[125]|
7012
+ 4[1257]|
7010
7013
  7\d
7011
7014
  )\d{5,6}
7012
7015
  </nationalNumberPattern>
@@ -7218,7 +7221,7 @@
7218
7221
  [0-3]\d|
7219
7222
  4[047-9]|
7220
7223
  5[0-25-9]|
7221
- 6[6-9]|
7224
+ 6[06-9]|
7222
7225
  7[02-9]|
7223
7226
  8[0-2457-9]|
7224
7227
  9[017-9]
@@ -7509,13 +7512,8 @@
7509
7512
  </leadingDigits>
7510
7513
  <format>$1 $2</format>
7511
7514
  </numberFormat>
7512
- <!-- Short shared cost numbers. -->
7513
- <numberFormat pattern="(\d{3})(\d{4})" nationalPrefixFormattingRule="$NP$FG">
7514
- <leadingDigits>138</leadingDigits>
7515
- <format>$1 $2</format>
7516
- </numberFormat>
7517
- <!-- Fixed line, 4 digit area codes. -->
7518
- <numberFormat pattern="(\d{4})(\d{3,11})" nationalPrefixFormattingRule="$NP$FG">
7515
+ <!-- Fixed line, 4 digit area codes. Only area code 5361 has two digit subscriber numbers. -->
7516
+ <numberFormat pattern="(\d{4})(\d{2,11})" nationalPrefixFormattingRule="$NP$FG">
7519
7517
  <leadingDigits>
7520
7518
  [24-6]|
7521
7519
  3(?:
@@ -7607,6 +7605,16 @@
7607
7605
  </leadingDigits>
7608
7606
  <format>$1 $2</format>
7609
7607
  </numberFormat>
7608
+ <!-- Short shared cost numbers. -->
7609
+ <numberFormat pattern="(\d{3})(\d{4})" nationalPrefixFormattingRule="$NP$FG">
7610
+ <leadingDigits>138</leadingDigits>
7611
+ <format>$1 $2</format>
7612
+ </numberFormat>
7613
+ <!-- Fixed line, 5 digit area codes. -->
7614
+ <numberFormat pattern="(\d{5})(\d{2,10})" nationalPrefixFormattingRule="$NP$FG">
7615
+ <leadingDigits>3</leadingDigits>
7616
+ <format>$1 $2</format>
7617
+ </numberFormat>
7610
7618
  <!-- UAN (181) numbers. -->
7611
7619
  <numberFormat pattern="(\d{3})(\d{5,11})" nationalPrefixFormattingRule="$NP$FG">
7612
7620
  <leadingDigits>181</leadingDigits>
@@ -7623,11 +7631,6 @@
7623
7631
  </leadingDigits>
7624
7632
  <format>$1 $2 $3</format>
7625
7633
  </numberFormat>
7626
- <!-- Fixed line, 5 digit area codes. -->
7627
- <numberFormat pattern="(\d{5})(\d{3,10})" nationalPrefixFormattingRule="$NP$FG">
7628
- <leadingDigits>3</leadingDigits>
7629
- <format>$1 $2</format>
7630
- </numberFormat>
7631
7634
  <!-- Mobile/pager format (from ITU document). Actual usage varies. -->
7632
7635
  <numberFormat pattern="(\d{3})(\d{7,8})" nationalPrefixFormattingRule="$NP$FG">
7633
7636
  <leadingDigits>1[67]</leadingDigits>
@@ -7699,27 +7702,21 @@
7699
7702
  <generalDesc>
7700
7703
  <nationalNumberPattern>
7701
7704
  [2579]\d{5,14}|
7702
- 49[67]0\d{1,4}|
7703
7705
  49(?:
7704
- [34]0|
7705
- 69|
7706
- 8\d
7707
- )\d\d?|
7708
- 49(?:
7709
- 37|
7710
- 49|
7711
- 7[89]|
7712
- 9\d
7713
- )\d{1,3}|
7706
+ [05]\d{10}|
7707
+ [46][1-8]\d{4,9}
7708
+ )|
7714
7709
  49(?:
7715
- [12]\d|
7710
+ [0-25]\d|
7716
7711
  3[1-689]|
7717
7712
  7[1-7]
7718
- )\d{1,8}|
7713
+ )\d{4,8}|
7719
7714
  49(?:
7720
- [05]\d|
7721
- [46][1-8]
7722
- )\d{1,9}|
7715
+ [0-2579]\d|
7716
+ [34][1-9]|
7717
+ 6[0-8]
7718
+ )\d{3}|
7719
+ 49\d{3,4}|
7723
7720
  (?:
7724
7721
  1|
7725
7722
  [368]\d|
@@ -7729,9 +7726,9 @@
7729
7726
  </generalDesc>
7730
7727
  <!-- The German ITU numbering plan gives overly simplistic minimum/maximum
7731
7728
  lengths for number ranges. This would (if taken literally) result in 1 or 2 length
7732
- subscriber numbers (e.g. 5-digit area code for 6 digit number).
7733
- A contact of the German numbering authority confirmed that subscriber numbers
7734
- are never shorter than 3-digits, and we've adopted this in the range data. -->
7729
+ subscriber numbers. However, a contact of the German numbering authority
7730
+ confirmed that subscriber numbers can never be shorter than 2-digit and total
7731
+ length can not be less than 6 digits. -->
7735
7732
  <!-- Maximum lengths of German numbers are generally undefined, since any subscriber
7736
7733
  number can connect to a private exchange (PABX), which can consume additionally
7737
7734
  dialled digits (e.g. for calling individual rooms in a hotel directly). This means that in
@@ -7740,9 +7737,18 @@
7740
7737
  This needs to be shorter to avoid range lengths overlapping which would otherwise
7741
7738
  cause issues in parsing (since 49 is both an area code and the country calling code). -->
7742
7739
  <fixedLine>
7743
- <possibleLengths national="[5-15]" localOnly="3,4"/>
7740
+ <possibleLengths national="[5-15]" localOnly="[2-4]"/>
7744
7741
  <exampleNumber>30123456</exampleNumber>
7745
7742
  <nationalNumberPattern>
7743
+ (?:
7744
+ 32|
7745
+ 49[4-6]\d
7746
+ )\d{9}|
7747
+ 49[0-7]\d{3,9}|
7748
+ (?:
7749
+ [34]0|
7750
+ [68]9
7751
+ )\d{3,13}|
7746
7752
  (?:
7747
7753
  2(?:
7748
7754
  0[1-689]|
@@ -7751,6 +7757,19 @@
7751
7757
  7[1-7]|
7752
7758
  8[0-7]
7753
7759
  )|
7760
+ 3(?:
7761
+ [3569]\d|
7762
+ 4[0-79]|
7763
+ 7[1-7]|
7764
+ 8[1-8]
7765
+ )|
7766
+ 4(?:
7767
+ 1[02-9]|
7768
+ [2-48]\d|
7769
+ 5[0-6]|
7770
+ 6[0-8]|
7771
+ 7[0-79]
7772
+ )|
7754
7773
  5(?:
7755
7774
  0[2-8]|
7756
7775
  [124-6]\d|
@@ -7759,7 +7778,7 @@
7759
7778
  )|
7760
7779
  6(?:
7761
7780
  0[02-9]|
7762
- [1-3589]\d|
7781
+ [1-358]\d|
7763
7782
  [47][0-8]|
7764
7783
  6[1-9]
7765
7784
  )|
@@ -7775,7 +7794,7 @@
7775
7794
  8(?:
7776
7795
  0[2-9]|
7777
7796
  1[0-79]|
7778
- [29]\d|
7797
+ 2\d|
7779
7798
  3[0-46-9]|
7780
7799
  4[0-6]|
7781
7800
  5[013-9]|
@@ -7790,58 +7809,7 @@
7790
7809
  6[0-8]|
7791
7810
  7[0-467]
7792
7811
  )
7793
- )\d{4,12}|
7794
- 3(?:
7795
- (?:
7796
- [03569]\d|
7797
- 4[0-79]|
7798
- 7[1-7]|
7799
- 8[1-8]
7800
- )\d{4,12}|
7801
- 2\d{9}
7802
- )|
7803
- 4(?:
7804
- (?:
7805
- [02-48]\d|
7806
- 1[02-9]|
7807
- 5[0-6]|
7808
- 6[0-8]|
7809
- 7[0-79]
7810
- )\d{4,12}|
7811
- 9(?:
7812
- [0-37]\d{4,9}|
7813
- [4-6]\d{4,10}
7814
- )
7815
- )|
7816
- (?:
7817
- 2(?:
7818
- 0[1-389]|
7819
- 1[124]|
7820
- 2[18]|
7821
- 3[14]|
7822
- [4-9]1
7823
- )|
7824
- [57][1-9]1|
7825
- 9(?:
7826
- 06|
7827
- [1-9]1
7828
- )
7829
- )\d{3}|
7830
- 3(?:
7831
- 0\d{3,4}|
7832
- (?:
7833
- [35-9][15]|
7834
- 4[015]
7835
- )\d{3}
7836
- )|
7837
- 4(?:
7838
- 0\d{3,4}|
7839
- [2-9]1\d{3}
7840
- )|
7841
- [68](?:
7842
- [1-8]1\d{3}|
7843
- 9\d{3,4}
7844
- )
7812
+ )\d{3,12}
7845
7813
  </nationalNumberPattern>
7846
7814
  </fixedLine>
7847
7815
  <!-- According to
@@ -8659,7 +8627,7 @@
8659
8627
  7(?:
8660
8628
  0[06-8]|
8661
8629
  6[1267]|
8662
- 7[017]
8630
+ 7[0-27]
8663
8631
  )
8664
8632
  )\d{6}
8665
8633
  </nationalNumberPattern>
@@ -8859,7 +8827,7 @@
8859
8827
  )\d{7}
8860
8828
  </nationalNumberPattern>
8861
8829
  </generalDesc>
8862
- <!-- Found valid fixed-line numbers online that starts with prefix 11 639 -->
8830
+ <!-- Found valid fixed-line numbers online that starts with prefix 11 617 and 11 639. -->
8863
8831
  <fixedLine>
8864
8832
  <possibleLengths national="9" localOnly="7"/>
8865
8833
  <exampleNumber>111112345</exampleNumber>
@@ -8899,7 +8867,7 @@
8899
8867
  5[0-4]
8900
8868
  )|
8901
8869
  6(?:
8902
- 18|
8870
+ 1[78]|
8903
8871
  2[69]|
8904
8872
  39|
8905
8873
  4[5-7]|
@@ -11233,7 +11201,7 @@
11233
11201
  <exampleNumber>21234567</exampleNumber>
11234
11202
  <nationalNumberPattern>
11235
11203
  (?:
11236
- 384[04]|
11204
+ 384[0-24]|
11237
11205
  58(?:
11238
11206
  0[1-8]|
11239
11207
  1[2-9]
@@ -12950,8 +12918,7 @@
12950
12918
  <format>$1 $2 $3</format>
12951
12919
  </numberFormat>
12952
12920
  <!-- 12-digit toll free numbers -->
12953
- <numberFormat pattern="(\d{2})(\d{3})(\d{4})(\d{3})" nationalPrefixFormattingRule="$NP$FG"
12954
- nationalPrefixOptionalWhenFormatting="true">
12921
+ <numberFormat pattern="(\d{2})(\d{3})(\d{4})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
12955
12922
  <leadingDigits>0</leadingDigits>
12956
12923
  <format>$1 $2 $3 $4</format>
12957
12924
  <intlFormat>NA</intlFormat>
@@ -17702,7 +17669,7 @@
17702
17669
  7(?:
17703
17670
  0[06-8]|
17704
17671
  6[1267]|
17705
- 7[017]
17672
+ 7[0-27]
17706
17673
  )
17707
17674
  )\d{6}
17708
17675
  </nationalNumberPattern>
@@ -18149,7 +18116,7 @@
18149
18116
  </voip>
18150
18117
  </territory>
18151
18118
 
18152
- <!-- Macedonia (FYROM) (MK) -->
18119
+ <!-- North Macedonia (MK) -->
18153
18120
  <!-- http://www.itu.int/oth/T02020000CE/en -->
18154
18121
  <!-- https://e-agencija.aek.mk/aek-crm-portal/Pages/Public/PublicFreeSeries/PublicFreeSeries -->
18155
18122
  <territory id="MK" countryCode="389" internationalPrefix="00" nationalPrefix="0"
@@ -18776,7 +18743,7 @@
18776
18743
  </voip>
18777
18744
  </territory>
18778
18745
 
18779
- <!-- Macau (MO) -->
18746
+ <!-- Macao (MO) -->
18780
18747
  <!-- No tollFree or premiumRate information can be found. -->
18781
18748
  <!-- http://www.itu.int/oth/T020200007E/en -->
18782
18749
  <!-- http://www.dsrt.gov.mo/web/en/generalinfo/allocatednum -->
@@ -19252,7 +19219,7 @@
19252
19219
  2[4-7]
19253
19220
  )|
19254
19221
  54(?:
19255
- 4\d|
19222
+ [34]\d|
19256
19223
  71
19257
19224
  )|
19258
19225
  6\d\d|
@@ -19276,7 +19243,7 @@
19276
19243
  )\d{4}|
19277
19244
  5(?:
19278
19245
  2[589]|
19279
- 4[489]|
19246
+ 4[3489]|
19280
19247
  7\d|
19281
19248
  8[0-689]|
19282
19249
  9[0-8]
@@ -20152,7 +20119,7 @@
20152
20119
  2(?:
20153
20120
  0(?:
20154
20121
  20|
20155
- 3[1-7]|
20122
+ 3[1-8]|
20156
20123
  4[13-5]|
20157
20124
  5[14]|
20158
20125
  6[14578]|
@@ -20335,7 +20302,7 @@
20335
20302
  0[2-9]|
20336
20303
  1[0-8]
20337
20304
  )|
20338
- 90[235-9]
20305
+ 90[1-35-9]
20339
20306
  )\d{7}
20340
20307
  </nationalNumberPattern>
20341
20308
  </mobile>
@@ -21215,7 +21182,7 @@
21215
21182
  </nationalNumberPattern>
21216
21183
  </generalDesc>
21217
21184
  <!-- Looks like not all 1X numbers are land-line numbers in Lima, some of them are allotted
21218
- as IDDs. As it affects parsing of these numbers and no valid numbers found online, not
21185
+ as IDDs. As it effects parsing of these numbers and no valid numbers found online, not
21219
21186
  supporting 8 digit 191[124], 1977 and 1990 ranges. -->
21220
21187
  <fixedLine>
21221
21188
  <possibleLengths national="8" localOnly="6,7"/>
@@ -21301,7 +21268,7 @@
21301
21268
  <mobile>
21302
21269
  <possibleLengths national="8"/>
21303
21270
  <exampleNumber>87123456</exampleNumber>
21304
- <nationalNumberPattern>8[79]\d{6}</nationalNumberPattern>
21271
+ <nationalNumberPattern>8[7-9]\d{6}</nationalNumberPattern>
21305
21272
  </mobile>
21306
21273
  </territory>
21307
21274
 
@@ -24744,7 +24711,7 @@
24744
24711
  </mobile>
24745
24712
  </territory>
24746
24713
 
24747
- <!-- Swaziland (SZ) -->
24714
+ <!-- Eswatini (SZ) -->
24748
24715
  <!-- http://www.itu.int/oth/T02020000C6/en -->
24749
24716
  <territory id="SZ" countryCode="268" internationalPrefix="00">
24750
24717
  <availableFormats>
@@ -25778,7 +25745,7 @@
25778
25745
  [25][2-8]|
25779
25746
  [346]|
25780
25747
  7[1-9]|
25781
- 8[27-9]
25748
+ 8[237-9]
25782
25749
  </leadingDigits>
25783
25750
  <format>$1 $2 $3</format>
25784
25751
  </numberFormat>
@@ -25818,9 +25785,12 @@
25818
25785
  <exampleNumber>221234567</exampleNumber>
25819
25786
  <nationalNumberPattern>
25820
25787
  24\d{6,7}|
25821
- 82(?:
25822
- 3\d|
25823
- 66
25788
+ 8(?:
25789
+ 2(?:
25790
+ 3\d|
25791
+ 66
25792
+ )|
25793
+ 36[24-9]
25824
25794
  )\d{4}|
25825
25795
  (?:
25826
25796
  2[235-8]\d|
@@ -27523,10 +27493,18 @@
27523
27493
  )\d{6}
27524
27494
  </nationalNumberPattern>
27525
27495
  </mobile>
27496
+ <!-- As per the user and update from carrier it seems that numbers starting with 1800 are
27497
+ renumbered to 1228. Because we don't have complete update,supporting both the ranges
27498
+ at present. -->
27526
27499
  <tollFree>
27527
27500
  <possibleLengths national="[8-10]"/>
27528
27501
  <exampleNumber>1800123456</exampleNumber>
27529
- <nationalNumberPattern>1800\d{4,6}</nationalNumberPattern>
27502
+ <nationalNumberPattern>
27503
+ 1(?:
27504
+ 228\d{4}|
27505
+ 800\d{4,6}
27506
+ )
27507
+ </nationalNumberPattern>
27530
27508
  </tollFree>
27531
27509
  <premiumRate>
27532
27510
  <possibleLengths national="[8-10]"/>
Binary file
@@ -3220,6 +3220,7 @@
3220
3220
  689|Pacific/Gambier&Pacific/Marquesas&Pacific/Tahiti
3221
3221
  6894|Pacific/Tahiti
3222
3222
  68987|Pacific/Gambier&Pacific/Marquesas&Pacific/Tahiti
3223
+ 68988|Pacific/Tahiti
3223
3224
  68989|Pacific/Tahiti
3224
3225
  690|Pacific/Fakaofo
3225
3226
  691|Pacific/Kosrae&Pacific/Ponape&Pacific/Truk
@@ -38,7 +38,7 @@ module TelephoneNumber
38
38
  def parse_prefix
39
39
  return original_number unless country.national_prefix_for_parsing
40
40
  duped = original_number.dup
41
- match_object = duped.match(country.national_prefix_for_parsing)
41
+ match_object = duped.match("^(?:#{country.national_prefix_for_parsing})")
42
42
 
43
43
  # we need to do the "start_with?" here because we need to make sure it's not finding
44
44
  # something in the middle of the number. However, we can't modify the regex to do this
@@ -1,3 +1,3 @@
1
1
  module TelephoneNumber
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telephone_number
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - MOBI Wireless Management
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-16 00:00:00.000000000 Z
11
+ date: 2019-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler