ConstA CBSL bank code. Parsed value: BankInfo.
A full phone number; rejects short codes.
Valid LKR amount within the given range. Parsed value: the amount as a number.
Valid date of birth within the given age range.
Valid driving licence number.
Recognised gender value. Parsed value: male or female.
Fails when the date of birth does not match the NIC in nicFieldName. Passes when either value is missing.
Fails when the gender does not match the NIC in nicFieldName. Passes when either value is missing.
A mobile number only.
Valid NIC. Parsed value: NicInfo.
Passes null; otherwise applies rule.
Passes undefined and empty strings; otherwise applies rule.
Valid passport number. Parsed value: PassportInfo.
Any valid phone number, including short codes. Parsed value: PhoneInfo.
Valid postal code with a known prefix.
Fails with code REQUIRED when the value is undefined, null, or a blank string.
TIN format (9 or 10 digits).
VAT registration number format.
Valid vehicle registration plate.
Ready-made ValidatorRules for each validator in this package.