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

    Function isValidOldNic

    • Checks specifically whether an input is a valid 10-character Old NIC (9 digits + V/X).

      Parameters

      • nic: unknown

        NIC number to check.

      • Optionaloptions: NicOptions

        Optional { referenceDate } used for age and future-date checks. Defaults to today.

      Returns boolean

      true only for a valid old-format NIC (9 digits followed by V or X).

      isValidOldNic('921234567V'); // true
      isValidOldNic('199212304567'); // false