diff --git a/src/lib/isIBAN.js b/src/lib/isIBAN.js index dd226b1da..173693ad9 100644 --- a/src/lib/isIBAN.js +++ b/src/lib/isIBAN.js @@ -83,7 +83,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 6c68cd71a..c3f3fc293 100644 --- a/test/validators.test.js +++ b/test/validators.test.js @@ -5259,6 +5259,7 @@ describe('Validators', () => { 'IR200170000000339545727003', 'MZ97123412341234123412341', 'MA64011519000001205000534921', + 'VG96VPVG0000012345678901', ], invalid: [ 'XX22YYY1234567890123', @@ -5266,6 +5267,7 @@ describe('Validators', () => { 'FR7630006000011234567890189@', 'FR7630006000011234567890189๐Ÿ˜…', 'FR763000600001123456!!๐Ÿคจ7890189@', + 'VG46H07Y0223060094359858', ], }); test({