passport library
Pakistani passport number checks.
Same as the pakdatakit/passport entry point of the npm package.
Functions
-
validatePassport(
String passport) → bool -
Validates the format of a Pakistani passport number: two letters followed
by seven digits, e.g.
AB1234567. Case, surrounding spaces and spaces or dashes between the letters and digits are ignored.