diff --git a/src/lib/isIBAN.js b/src/lib/isIBAN.js index 5edcf83a5..28f39be89 100644 --- a/src/lib/isIBAN.js +++ b/src/lib/isIBAN.js @@ -84,7 +84,7 @@ const ibanRegexThroughCountryCode = { TR: /^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/, UA: /^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/, VA: /^(VA[0-9]{2})\d{18}$/, - VG: /^(VG[0-9]{2})[A-Z0-9]{4}\d{16}$/, + VG: /^(VG[0-9]{2})[A-Z]{4}\d{16}$/, XK: /^(XK[0-9]{2})\d{16}$/, }; diff --git a/test/validators.test.js b/test/validators.test.js index 6b603ff1b..811032439 100644 --- a/test/validators.test.js +++ b/test/validators.test.js @@ -5360,6 +5360,7 @@ describe('Validators', () => { 'IR200170000000339545727003', 'MZ97123412341234123412341', 'MA64011519000001205000534921', + 'VG96VPVG0000012345678901', 'DZ580002100001113000000570', ], invalid: [ @@ -5368,6 +5369,7 @@ describe('Validators', () => { 'FR7630006000011234567890189@', 'FR7630006000011234567890189๐Ÿ˜…', 'FR763000600001123456!!๐Ÿคจ7890189@', + 'VG46H07Y0223060094359858', ], }); test({