lib/aba/validations.rb in aba-1.0.0 vs lib/aba/validations.rb in aba-1.0.1

- old
+ new

@@ -51,10 +51,10 @@ self.error_collection << "#{attribute} must be a number" unless value.to_s =~ /\A[+-]?\d+\Z/ else self.error_collection << "#{attribute} must be an unsigned number" unless value.to_s =~ /\A\d+\Z/ end when :account_number - if value.to_s =~ /\A[0\ ]+\Z/ || value.to_s !~ /\A[a-z\d\ ]{1,9}\Z/ + if value.to_s =~ /\A[0\ ]+\Z/ || value.to_s !~ /\A[a-z\d\ ]{1,9}\Z/i self.error_collection << "#{attribute} must be a valid account number" end when :becs self.error_collection << "#{attribute} must not contain invalid characters" unless value.to_s =~ BECS_PATTERN when :indicator