-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Closed
Labels
whatwg-urlIssues and PRs related to the WHATWG URL implementation.Issues and PRs related to the WHATWG URL implementation.
Description
In the http scheme, the slashes after the colon are brought together in two, but it seems that it remains as it is in the file scheme.
const URL = require('url').URL
new URL('http://////example.com').href
// => 'http://example.com/'
new URL('file://////foo/bar').href
// => 'file://////foo/bar'
// it should be `file:///foo/bar`
Issue report on the spec: whatwg/url#232
Metadata
Metadata
Assignees
Labels
whatwg-urlIssues and PRs related to the WHATWG URL implementation.Issues and PRs related to the WHATWG URL implementation.