Sha256: 514ecdcc83eea78f27587fce685abcf8e6b96cecef1ba2b60986ef4549d4e59f

Contents?: true

Size: 416 Bytes

Versions: 4

Compression:

Stored size: 416 Bytes

Contents

# frozen_string_literal: true

module SwissBankValidator
  IBAN_REGEX = /\ACH[A-Z0-9]{2}\d{5}[A-Z0-9]{12}\z/.freeze
  IBAN_LENGTH = 21

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
swiss_bank_validator-1.0.3 lib/swiss_bank_validator/constants.rb
swiss_bank_validator-1.0.1 lib/swiss_bank_validator/constants.rb
swiss_bank_validator-0.6.2 lib/swiss_bank_validator/constants.rb
swiss_bank_validator-1.0.0 lib/swiss_bank_validator/constants.rb