From 77f81ec099ba851069ebff4195369a4ac9d4cd9a Mon Sep 17 00:00:00 2001 From: mash3al-29 Date: Thu, 24 Oct 2024 19:49:07 +0300 Subject: [PATCH] Added test cases for the issue of france locality --- src/lib/isPostalCode.js | 2 +- test/validators.test.js | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/isPostalCode.js b/src/lib/isPostalCode.js index 437dbe622..103656205 100644 --- a/src/lib/isPostalCode.js +++ b/src/lib/isPostalCode.js @@ -28,7 +28,7 @@ const patterns = { EE: fiveDigit, ES: /^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/, FI: fiveDigit, - FR: /^(?:(?:0[1-9]|[1-8]\d|9[0-5])\d{3}|97[1-46]\d{2})$/, + FR: /^\d{2}\s?\d{3}$/, GB: /^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i, GR: /^\d{3}\s?\d{2}$/, HR: /^([1-5]\d{4}$)/, diff --git a/test/validators.test.js b/test/validators.test.js index 851496002..3756fb85a 100644 --- a/test/validators.test.js +++ b/test/validators.test.js @@ -12988,8 +12988,6 @@ describe('Validators', () => { }); }); - - it('should validate MIME types', () => { test({ validator: 'isMimeType',