From 61624ba5c990540c4bfc175e3a7a51520733c6ba Mon Sep 17 00:00:00 2001 From: ATodd1 Date: Fri, 15 Mar 2024 14:56:26 -0700 Subject: [PATCH] updated MobilePhone.js issue #1761 Added mobile phone code for Canada --- src/lib/isMobilePhone.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/isMobilePhone.js b/src/lib/isMobilePhone.js index 5d2534eda..2ae4396e5 100644 --- a/src/lib/isMobilePhone.js +++ b/src/lib/isMobilePhone.js @@ -160,6 +160,7 @@ const phones = { 'ar-EH': /^(\+?212|0)[\s\-]?(5288|5289)[\s\-]?\d{5}$/, 'fa-AF': /^(\+93|0)?(2{1}[0-8]{1}|[3-5]{1}[0-4]{1})(\d{7})$/, // this is where I will add the new number + 'en-CA': /^((\+?1-?)|0)?[2-9]([0-9]{2})?[2-9]\d{6}$/, }; /* eslint-enable max-len */