From e84bf81efb362f52f4cdbf0f881800e86d4e4cc9 Mon Sep 17 00:00:00 2001 From: Khaled FERJANI Date: Tue, 7 Jan 2025 09:11:47 +0100 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9B=20fix:=20Cyprus=20mobile=20pho?= =?UTF-8?q?ne=20validation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/isMobilePhone.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/isMobilePhone.js b/src/lib/isMobilePhone.js index 393ee6fbd..594c8d37e 100644 --- a/src/lib/isMobilePhone.js +++ b/src/lib/isMobilePhone.js @@ -33,7 +33,7 @@ const phones = { 'de-LU': /^(\+352)?((6\d1)\d{6})$/, 'dv-MV': /^(\+?960)?(7[2-9]|9[1-9])\d{5}$/, 'el-GR': /^(\+?30|0)?6(8[5-9]|9(?![26])[0-9])\d{7}$/, - 'el-CY': /^(\+?357?)?(9(9|6)\d{6})$/, + 'el-CY': /^(\+?357?)?(9(9|7|6|5|4)\d{6})$/, 'en-AI': /^(\+?1|0)264(?:2(35|92)|4(?:6[1-2]|76|97)|5(?:3[6-9]|8[1-4])|7(?:2(4|9)|72))\d{4}$/, 'en-AU': /^(\+?61|0)4\d{8}$/, 'en-AG': /^(?:\+1|1)268(?:464|7(?:1[3-9]|[28]\d|3[0246]|64|7[0-689]))\d{4}$/, From fa32c6b371adb48161ace86f04539acc3037ea9c Mon Sep 17 00:00:00 2001 From: Khaled FERJANI Date: Tue, 7 Jan 2025 09:12:01 +0100 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A7=AA=20chore:=20update=20unit=20tes?= =?UTF-8?q?ts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/validators.test.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/validators.test.js b/test/validators.test.js index aa13906b0..59156a37f 100644 --- a/test/validators.test.js +++ b/test/validators.test.js @@ -8714,6 +8714,11 @@ describe('Validators', () => { '+3599148725', '96537247', '3596676533', + '+35795123455', + '+35797012204', + '35799123456', + '+35794123456', + '+35796123456', ], invalid: [ '',