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

Ip is giving single strings("1", "2") without dot as valid ipV6address. #93

Open
mces1236 opened this issue Aug 14, 2018 · 0 comments
Open

Comments

@mces1236
Copy link

ip.isV6Format("1") is returning true.

/^(::)?(((\d{1,3}.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/.test("1")
true

/^(::)?(((\d{1,3}.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/.test("12")
true

/^(::)?(((\d{1,3}.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/.test("123")
true

/^(::)?(((\d{1,3}.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/.test("1234")
true

@mces1236 mces1236 changed the title Ipv6 is giving single strings("1", "2") without dot as valid ipV6address. Ip is giving single strings("1", "2") without dot as valid ipV6address. Aug 14, 2018
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