Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPv4 check not works correctly #17

Closed
muneale opened this issue Aug 3, 2023 · 0 comments
Closed

IPv4 check not works correctly #17

muneale opened this issue Aug 3, 2023 · 0 comments

Comments

@muneale
Copy link

muneale commented Aug 3, 2023

Hi everyone,
I'm facing the following issue while using your library.

isIPv4('123.123.123.');  // --> false | OK because I expect false
isIPv4('123.123.123.1');  // --> true | OK because I expect true
isIPv4('123.123.123.12');  // --> true | OK because I expect true
isIPv4('123.123.123.123');  // --> true | OK because I expect true
isIPv4('123.123.123.1234');  // --> true | NOT OK because I expect false and I get true
isIPv4('123.123.123.12345');  // --> true | NOT OK because I expect false and I get true

I'm using the 5.0.0 version and I'm using Typescript.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant