Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib/isPassportNumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions test/validators.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2926,11 +2926,11 @@ describe('Validators', () => {
validator: 'isPassportNumber',
args: ['AZ'],
valid: [
'AZE16175905',
'AA1617595',
'A16175905',
'A16175958',
],
invalid: [
'A12345843',
'AZ1234584',
],
});

Expand Down