Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
2c4aede
fix(isDate): Timezone Offset Fix (#2257)
tomaspanek Aug 18, 2023
3541b0d
feat(isTaxId): add tax id for Argentina, es-AR (#2224)
estefrare Aug 18, 2023
6923860
feat(isPassportNumber): added South African, ZA validator (#2265)
GMorris-professional Aug 18, 2023
b958bd7
feat(isMobilePhone): Added the regex for Malawi en-MW (#2267)
SimranSiddiqui Aug 18, 2023
332b501
fix(docs): misspelling of Mailto (#2368)
ZhulinskiiDanil Mar 5, 2024
4197b86
chore(isMailtoURI): remove unnecessary default to (#2341)
WikiRik Mar 5, 2024
31c88cf
fix(docs): fixed typo in README.md (#2371)
devmanbud Apr 25, 2024
6d5c52a
feat(isUUID): support uuid v7 (#2345)
ruscon Apr 25, 2024
752bd09
fix(isPassportNumber): fix regex Azerbaijan (#2284)
amaliacatalina Apr 25, 2024
0a100fe
feat(isAlpha, isAlphanumeric): add Esperanto (eo) locale (#2285)
RobinvanderVliet Apr 25, 2024
edb6b1c
fix(isPostalCode): improve Dutch postal code regex (#2271)
RobinvanderVliet Apr 25, 2024
b34a335
fix(isPort): Invalid leading zeros (#2208)
anasshakil Apr 25, 2024
32b174e
feat(isLicensePlate): Support for Pakistani vehicles (#2207)
anasshakil Apr 25, 2024
19f11cf
feat: added isAbaRouting validator (#2143)
songyuew Apr 25, 2024
6b3f62d
fix(isMobilePhone): fixed validation for am-AM (#2140)
AlexKrupko Apr 25, 2024
817e56e
ci: add latest node versions (#2364)
rubiin Apr 25, 2024
72c8dc1
fix(isPassport): added tests for ZA Passport Number (#2270)
GMorris-professional Apr 27, 2024
5677f91
fix: add SLE to the isISO4217 validator (#2273)
urg Apr 27, 2024
2253a77
chore: Publish to NPM with provenance (#2276)
meyfa Apr 27, 2024
8a40349
fix: symbolRegex in isStrongPassword to include '\' (#2278)
nandavikas Apr 27, 2024
11ac6a4
fix(isVAT): fixed KZ VAT number length check (#2279)
MatthieuLemoine Apr 27, 2024
d8c93d2
feat(isIBAN): add Algeria locale (#2320)
thibault-lr Apr 27, 2024
eacccaf
docs: move contributing guidelines to CONTRIBUTING.md (#2386)
alinaghale88 Apr 27, 2024
0836777
fix(isDate): hyphen before year is not allowed (#2381)
Sumit-tech-joshi Apr 27, 2024
43a0f09
feat(isTaxID): added TaxID for Ukraine uk-UA (#2358)
arttiger Apr 27, 2024
83d6ffd
fix(isVAT): improved ABN (AU VAT) validation (#2343)
matthewberryman Apr 27, 2024
cd4e7bf
13.12.0
profnandaa May 9, 2024
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
Prev Previous commit
Next Next commit
fix(isPassportNumber): fix regex Azerbaijan (#2284)
* Update isPassportNumber.js

Added the updated Azerbaijan passport validation:
See issue:
#2274

* Update validators.test.js
  • Loading branch information
amaliacatalina authored Apr 25, 2024
commit 752bd096ef097369b01e67a7c15f59322b824c72
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