From b66b1e621928db794aa16c9faa2cfa99e7d979ea Mon Sep 17 00:00:00 2001 From: Rich Brown Date: Fri, 10 Oct 2025 21:33:20 -0400 Subject: [PATCH] Update ipv6.test.ts See https://github.com/webpod/ip/pull/31#issuecomment-3392718974 for details --- src/test/ts/ipv6.test.ts | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/test/ts/ipv6.test.ts b/src/test/ts/ipv6.test.ts index 9b038b0..2f8ec00 100644 --- a/src/test/ts/ipv6.test.ts +++ b/src/test/ts/ipv6.test.ts @@ -1,14 +1,21 @@ /** - * This test cases was borrowed and slightly adapted from richb-intermapper/IPv6-Regex. + * These test cases were borrowed and slightly adapted from richb-intermapper/IPv6-Regex. * All credit goes to Rich Brown, Dartware, intermapper.com. * - * Source references: - * + * Provenance of the test cases: The original document at: * https://github.com/richb-intermapper/IPv6-Regex/blob/master/test-ipv6-regex.pl + * collected test cases from various sources around the internet. * + * THERE ARE DEFINITELY DUPLICATE TESTS. They don't matter if the test + * function works, they take a millisecond (or less) to check. + * + * Please submit updated tests cases as an Issue to this repository. + * * Original license: * - * IPv6 Regex by Dartware, LLC is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License To attribute this work, place a link to http://intermapper.com in the Credits or About... window of your software. We would love to have you send any changes to the code or regular expression back to us at support@intermapper.com. + * IPv6 Regex by Dartware, LLC is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License + * To attribute this work, place a link to http://intermapper.com in the Credits or About... window of your software. + * We would love to have you send any changes to the code or regular expression back to us at support@intermapper.com. */ import { test, describe, beforeAll, afterAll, expect } from 'vitest'