Skip to content

validateSTRN

function validateSTRN(strn): boolean;

Defined in: tax.ts:81

Validates the format of a Sales Tax Registration Number (STRN): 13 digits, with optional spaces or dashes.

FBR does not publish a check-digit algorithm or the meaning of the digit groups, so this validates the format only.

Parameter Type Description
strn string STRN to validate

boolean

true if the format is valid