lanka-validations - v2.1.0
    Preparing search index...

    Function isValidBankAccountNumber

    • Validates Sri Lankan bank account number format. Must be numeric and between 6 to 18 digits.

      Parameters

      • acc: unknown

        Account number. Spaces and hyphens are ignored.

      Returns boolean

      true if the account number is numeric and of an accepted length.

      isValidBankAccountNumber('1234-5678-90'); // true
      isValidBankAccountNumber('12AB'); // false