diff --git a/lib/iban-tools/rules.yml b/lib/iban-tools/rules.yml index d5ad26c..ba147c9 100644 --- a/lib/iban-tools/rules.yml +++ b/lib/iban-tools/rules.yml @@ -130,6 +130,11 @@ length: 27 bban_pattern: '\d{7}[A-Z0-9]{16}' +'GT': + # Guatemala + length: 28 + bban_pattern: '[A-Z]{4}\d{20}' + 'HR': # Croatia length: 21 @@ -324,3 +329,8 @@ # Virgin Islands length: 24 bban_pattern: '[A-Z0-9]{4}\d{16}' + +'XK': + # Kosovo + length: 20 + bban_pattern: '\d{16}' diff --git a/spec/iban-tools/iban_spec.rb b/spec/iban-tools/iban_spec.rb index c6f404a..e9a64c3 100644 --- a/spec/iban-tools/iban_spec.rb +++ b/spec/iban-tools/iban_spec.rb @@ -119,6 +119,7 @@ module IBANTools "GI75NWBK000000007099453", "GL4330003330229543", "GR1601101250000000012300695", + "GT82TRAJ01020000001210029690", "HR1210010051863000160", "HU42117730161111101800000000", "IE29AIBK93115212345678", @@ -155,7 +156,8 @@ module IBANTools "SM86U0322509800000000270100", "TN5914207207100707129648", "TR330006100519786457841326", - "UA173052990006762462622943782" + "UA173052990006762462622943782", + "XK051212012345678906" ].each do |iban_code| describe iban_code do it "should be valid" do