Skip to content

Parsing host without protocol #40

@ccorcos

Description

@ccorcos

This library doesnt seem to parse the host properly when there isnt a protocol.

> u.parse("www.google.com/yay?q=10&q=12")
Url {
  protocol: null,
  slashes: null,
  auth: null,
  host: null,
  port: null,
  hostname: null,
  hash: null,
  search: '?q=10&q=12',
  query: 'q=10&q=12',
  pathname: 'www.google.com/yay',
  path: 'www.google.com/yay?q=10&q=12',
  href: 'www.google.com/yay?q=10&q=12' }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions