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

fix: ipv6 regex validation #3513

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix: ipv6 regex validation #3513

wants to merge 1 commit into from

Conversation

avegao
Copy link

@avegao avegao commented May 22, 2024

IPv6 validation fails when the last two parts of the IPv6 are compressed, both when one or both are omitted. It does not happen if it is any other part.

I search a better regex for IPv6 and I found this: https://stackoverflow.com/a/17871737

I fix regex expression in standard and Deno src files and added tests.

It fixes #3512

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

Successfully merging this pull request may close these issues.

IPv6 validation error
1 participant