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
(\d?\d?\d){0,255} means 0 to 255 repetitions of (\d?\d?\d). I assume the actual intention was the integer value should be between 0 to 255.
We could do this instead:
ipv4: expression`!/^(\\d){1,3}\\.(\\d){1,3}\\.(\\d){1,3}\\.(\\d){1,3}$/.test(${'data'}) || ${'data'}.split(".").some(d => d > 255)`,
The text was updated successfully, but these errors were encountered:
While testing the ipv4 format checker in my application, I noticed this problem.
Test case:
This is due to the regular expression used for the validation being slightly wrong:
lib/utils/formats.js line 24:
(\d?\d?\d){0,255} means 0 to 255 repetitions of (\d?\d?\d). I assume the actual intention was the integer value should be between 0 to 255.
We could do this instead:
The text was updated successfully, but these errors were encountered: