lib/banktools-se/ocr.rb in banktools-se-3.1.0 vs lib/banktools-se/ocr.rb in banktools-se-3.1.1

- old
+ new

@@ -18,9 +18,10 @@ number = number.to_s add_length_digit = length_digit pad = pad.to_s raise MustBeNumeric unless number.match(/\A\d+\z/) + # Padding isn't something BGC specifies, but we needed it to support a legacy scheme. number += pad # Adding 2: 1 length digit, 1 check digit. number += ((number.length + 2) % 10).to_s if add_length_digit