Module: SwissBankValidator

Defined in:
lib/swiss_bank_validator.rb,
lib/swiss_bank_validator/version.rb,
lib/swiss_bank_validator/constants.rb

Constant Summary collapse

VERSION =
'1.0.3'
IBAN_REGEX =
/\ACH[A-Z0-9]{2}\d{5}[A-Z0-9]{12}\z/.freeze
IBAN_LENGTH =
21
BANK_REGEX =

Regex that allow only field accepted by Swiss bank to initiate a payment

%r{\A[a-zA-Z0-9.,;:’+\-()?*\[\]{}`´~'\s!“#%÷=@_$£
àáâäçèéêëìíîïñòóôöùúûüýßÀÁÂÄÇÈÉÊËÌÍÎÏÒÓÔÖÙÚÛÜÑ]*\z}x.freeze