lib/ibandit/local_details_cleaner.rb in ibandit-0.11.19 vs lib/ibandit/local_details_cleaner.rb in ibandit-0.11.20
- old
+ new
@@ -83,10 +83,12 @@
account_number: account_number,
}
end
def self.clean_ca_details(local_details)
- local_details
+ return {} if local_details[:account_number].length < 7 # minimum length
+
+ { account_number: local_details[:account_number].rjust(12, "0") }
end
def self.clean_bg_details(local_details)
# Bulgarian national bank details were replaced with IBANs in 2006.
local_details