Skip to content

IPv6 URL's not parsed correctly, however IPv4 are #114

@niftylettuce

Description

@niftylettuce
❯ node
Welcome to Node.js v12.18.0.
Type ".help" for more information.
> const { fromUrl, NO_HOSTNAME } = require('parse-domain');
undefined
> fromUrl('1.2.3.4/host')
'1.2.3.4'
> fromUrl('::af/host')
Symbol(NO_HOSTNAME)
> fromUrl('1234:1234:123:21::21/host')
Symbol(NO_HOSTNAME)
>

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