lib/banktools/global/iban.rb in banktools-global-1.0.0 vs lib/banktools/global/iban.rb in banktools-global-1.0.1
- old
+ new
@@ -5,11 +5,10 @@
class BankTools::Global::IBAN
E = BankTools::Global::Errors
def initialize(raw)
- @raw = raw
- @pre_normalized = raw.to_s.strip.upcase
+ @pre_normalized = raw.to_s.gsub(/\s/, "").strip.upcase
end
def valid?
errors.empty?
end