phony 2.20.11 → 2.20.12

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
  SHA256:
3
- metadata.gz: f68626c2d1c6c1acec1bb90885078a4c304e104572eff7ec4861832d6a1a5b3f
4
- data.tar.gz: 83f0cc53c664ae5850f7a2f645804a0cd61a839cb389f5108b4744df4bb3c20e
3
+ metadata.gz: b309483112eea98930ed42b246d6df922d06e268212e696aa23c28035956f65c
4
+ data.tar.gz: 1ee4fbc7968e7bbc3d90ac062635c2cc810d9aa3890103aeeb03fd13dbddedc5
5
5
  SHA512:
6
- metadata.gz: 5532e887806791826d8b3796afe665e0510a691e55452461f5392bbc00c06e4222069603adbe6ffb28f174cb545ac50c9181a27730b042f2e6730f1c686479e4
7
- data.tar.gz: a0d7f8366751cfb069c57ae99980d997b1d1b1cda370f25dac608c28f183e45b4746866c0c1b89fa2c68d9e4b8b9b33d19e70094eb31f7e4e0943167b5cf8fa7
6
+ metadata.gz: 76d9ad6a66e4df3eecdd12338ac140f3f93eb8fde71975c01035373f1f4074a9590d32251f50ef0207949f23561cc9b72ae83b1d3960148c23cb3156c9c172ad
7
+ data.tar.gz: a4e5c31d362c9afbca54e4fd7248569b008d405ea4b2ea52891f3f4b84cc01514f982e79a80a619886cb57f5c142c55de9342f8c1af4a7df1f9893ea1182dfd7
@@ -654,12 +654,12 @@ Phony.define do
654
654
  match(/^(2[467]\d{2})\d{4}$/) >> split(2,2) | # 4-digit NDC
655
655
  match(/^(6\d[18])\d+$/) >> split(3,3) | # mobile
656
656
  match(/^(60\d{2})\d{8}$/) >> split(2,2,2,2) | # mobile machine to machine
657
- match(/^((2[^467]|[3-9]\d))\d{4}$/) >> split(2,2) | # 2-digit NDC Regular 6 digits number
658
- match(/^((2[^467]|[3-9]\d))\d{4}$/) >> split(2,2) | # 2-digit NDC Regular 6 digits number
659
- match(/^((2[^467]|[3-9]\d))\d{5}$/) >> split(2,2,1) | # 2-digit NDC Regular 6 digits number w/ 1 digit extension
660
- match(/^((2[^467]|[3-9]\d))\d{6}$/) >> split(2,2,2) | # 2-digit NDC Regular 8 digits number or 6 digits with 2 digits extension
661
- match(/^((2[^467]|[3-9]\d))\d{7}$/) >> split(2,2,3) | # 2-digit NDC Regular 6 digits with 4 digits extension
662
- match(/^((2[^467]|[3-9]\d))\d{8}$/) >> split(2,2,4) | # 2-digit NDC Regular 6 digits number with 4 digits extension
657
+ match(/^((2[^467]|[2-9]\d))\d{4}$/) >> split(2,2) | # 2-digit NDC Regular 6 digits number
658
+ match(/^((2[^467]|[2-9]\d))\d{4}$/) >> split(2,2) | # 2-digit NDC Regular 6 digits number
659
+ match(/^((2[^467]|[2-9]\d))\d{5}$/) >> split(2,2,1) | # 2-digit NDC Regular 6 digits number w/ 1 digit extension
660
+ match(/^((2[^467]|[2-9]\d))\d{6}$/) >> split(2,2,2) | # 2-digit NDC Regular 8 digits number or 6 digits with 2 digits extension
661
+ match(/^((2[^467]|[2-9]\d))\d{7}$/) >> split(2,2,3) | # 2-digit NDC Regular 6 digits with 4 digits extension
662
+ match(/^((2[^467]|[2-9]\d))\d{8}$/) >> split(2,2,4) | # 2-digit NDC Regular 6 digits number with 4 digits extension
663
663
  match(/^(\d{2})\d{3}$/) >> split(2,2,1) # fallback for 5 digit number
664
664
 
665
665
  # country '353' # Republic of Ireland, see special file.
@@ -528,6 +528,8 @@ describe 'country descriptions' do
528
528
  it_splits '352545258', ['352', '54', '52', '58']
529
529
  it_splits '352818181', ['352', '81', '81', '81']
530
530
  it_splits '3523572141', ['352', '35', '72', '14', '1']
531
+ it_splits '3522634731', ['352', '26', '34', '73', '1']
532
+ it_splits '352264412701', ['352', '26', '44', '12', '701']
531
533
  end
532
534
  describe 'Macedonia' do
533
535
  it_splits '38921234567', ['389', '2', '123', '4567'] # Skopje
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phony
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.20.11
4
+ version: 2.20.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Hanke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-05 00:00:00.000000000 Z
11
+ date: 2024-01-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: 'Fast international phone number (E164 standard) normalizing, splitting
14
14
  and formatting. Lots of formatting options: International (+.., 00..), national