Skip to content

Add support for IPv6 in isIPRange(str) #1567

@AnandChowdhary

Description

@AnandChowdhary

Describe the bug
Currently, the isIPRange() method only supports IPv4 addresses. It should be extended to support IPv6 addresses as well.

Examples

isIPRange("192.0.2.0/24") // IPv4 CIDR is `true`
isIPRange("2001:db8::/32") // IPv6 CIDR is `false`

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions