Skip to content

::2:3:4:5:6:7:8 is incorrectly marked as invalid IPv6 address #1626

@ericjackson0

Description

@ericjackson0

Describe the bug
::2:3:4:5:6:7:8 is marked as an invalid IPv6 address. It should be marked as valid.

Examples
Tested code at https://runkit.com/embed/2beeyq38q1ya

var validator = require("validator")

validator.isIP('::2:3:4:5:6:7:8'); // Returns false, should be true

image

Additional context
Validator.js version: 13.5.2
Node.js version: 15.11.0
OS platform: Ubuntu

Some other reading in other projects and on the web confirms this should be a valid IPv6 address:

If I find time to address it I can try to fix it, but am not sure when that will be. 🙂

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions