From e77dbc43bdbb94f1c009a6647d90cfe21d0995e8 Mon Sep 17 00:00:00 2001 From: amprew Date: Thu, 6 Apr 2023 11:33:36 +0100 Subject: [PATCH] Update minimum US account number To validate properly we want the minimum account number for US to be correct. For now we can go with 4 which is the minimum length we support for US ACH. Bump version to 1.16.0 --- data/raw/pseudo_ibans.yml | 4 ++-- data/structures.yml | 4 ++-- lib/ibandit/version.rb | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/data/raw/pseudo_ibans.yml b/data/raw/pseudo_ibans.yml index f8cc42d..bea632a 100644 --- a/data/raw/pseudo_ibans.yml +++ b/data/raw/pseudo_ibans.yml @@ -41,11 +41,11 @@ US: :bank_code_length: 9 :branch_code_length: 0 :account_number_length: !ruby/range - begin: 1 + begin: 4 end: 17 excl: false :bank_code_format: "\\d{9}" - :account_number_format: "_*\\d{1,17}" + :account_number_format: "_*\\d{4,17}" :national_id_length: 9 :pseudo_iban_bank_code_length: 9 :pseudo_iban_branch_code_length: 0 diff --git a/data/structures.yml b/data/structures.yml index 8255041..5e9bc82 100644 --- a/data/structures.yml +++ b/data/structures.yml @@ -1521,11 +1521,11 @@ US: :bank_code_length: 9 :branch_code_length: 0 :account_number_length: !ruby/range - begin: 1 + begin: 4 end: 17 excl: false :bank_code_format: "\\d{9}" - :account_number_format: _*\d{1,17} + :account_number_format: _*\d{4,17} :national_id_length: 9 :pseudo_iban_bank_code_length: 9 :pseudo_iban_branch_code_length: 0 diff --git a/lib/ibandit/version.rb b/lib/ibandit/version.rb index b8658f2..90f3a32 100644 --- a/lib/ibandit/version.rb +++ b/lib/ibandit/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Ibandit - VERSION = "1.15.0" + VERSION = "1.16.0" end