From 047720e1d32e98947eaff43892bb3b9fb699ca6d Mon Sep 17 00:00:00 2001 From: MatanBobi Date: Sun, 2 Sep 2018 14:46:03 +0300 Subject: [PATCH] Fix he-IL to contain a $ sign at the end Until now, every string that started with a valid Israeli phone number passed the test. --- 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 cac61d134..64c5bd57e 100644 --- a/src/lib/isMobilePhone.js +++ b/src/lib/isMobilePhone.js @@ -40,7 +40,7 @@ const phones = { 'fi-FI': /^(\+?358|0)\s?(4(0|1|2|4|5|6)?|50)\s?(\d\s?){4,8}\d$/, 'fo-FO': /^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/, 'fr-FR': /^(\+?33|0)[67]\d{8}$/, - 'he-IL': /^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}/, + 'he-IL': /^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/, 'hu-HU': /^(\+?36)(20|30|70)\d{7}$/, 'id-ID': /^(\+?62|0)(0?8?\d\d\s?\d?)([\s?|\d]{7,12})$/, 'it-IT': /^(\+?39)?\s?3\d{2} ?\d{6,7}$/,