Skip to content

Conversation

richb-hanover
Copy link

@richb-hanover richb-hanover commented Oct 9, 2025

A long time ago (2013) my company added IPv6 to our networking product. We produced a whole suite of test cases to check our IPv6 validation code. You can review the original at: https://github.com/richb-intermapper/IPv6-Regex/blob/master/test-ipv6-regex.pl

This PR translates the original perl code to Javascript. It finds many chases where the current isV6Format() function appears to accept illegal format addresses.

Use npm run testmany command (or node test/many.test.ts) to run the test that outputs failing V6 addresses.

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.

1 participant