From ff3a99a880fc2316ca010cdf393a515b55608ee8 Mon Sep 17 00:00:00 2001 From: amaliacatalina <118902309+amaliacatalina@users.noreply.github.com> Date: Fri, 25 Aug 2023 15:06:38 +0300 Subject: [PATCH] Update isPassportNumber.js Added the updated Azerbaijan passport validation: See issue: https://github.com/validatorjs/validator.js/issues/2274 --- src/lib/isPassportNumber.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/isPassportNumber.js b/src/lib/isPassportNumber.js index 4763d6566..c1803fb50 100644 --- a/src/lib/isPassportNumber.js +++ b/src/lib/isPassportNumber.js @@ -11,7 +11,7 @@ const passportRegexByCountryCode = { AR: /^[A-Z]{3}\d{6}$/, // ARGENTINA AT: /^[A-Z]\d{7}$/, // AUSTRIA AU: /^[A-Z]\d{7}$/, // AUSTRALIA - AZ: /^[A-Z]{2,3}\d{7,8}$/, // AZERBAIJAN + AZ: /^[A-Z]{1}\d{8}$/, // AZERBAIJAN BE: /^[A-Z]{2}\d{6}$/, // BELGIUM BG: /^\d{9}$/, // BULGARIA BR: /^[A-Z]{2}\d{6}$/, // BRAZIL