Skip to content

Commit

Permalink
Fix he-IL to contain a $ sign at the end
Browse files Browse the repository at this point in the history
Until now, every string that started with a valid Israeli phone number passed the test.
  • Loading branch information
MatanBobi authored Sep 2, 2018
1 parent 6ce3060 commit 047720e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/isMobilePhone.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}$/,
Expand Down

0 comments on commit 047720e

Please sign in to comment.