You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
looks like the regex: 'he-IL': /^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}/, is missing the $ sign at the end which causes a validation problem when not specifying locale as it will pass any string that only contains a valid (Israeli) phone at the start and not is a valid phone.
A permalink for the code here
Hi,
looks like the regex:
'he-IL': /^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}/,
is missing the$
sign at the end which causes a validation problem when not specifying locale as it will pass any string that only contains a valid (Israeli) phone at the start and not is a valid phone.A permalink for the code here
A permalink for the associated commit here
I would gladly submit a PR if you find this as correct.
Thanks.
The text was updated successfully, but these errors were encountered: