-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed
Labels
urlIssues and PRs related to the legacy built-in url module.Issues and PRs related to the legacy built-in url module.
Description
Node v7.1.0.
I parsed a url with the require('url')
module using .parse
and ran into a gotcha.
I had path.join('vendor', url.pathname, url.search)
and it errored because .search
was null
.
I had assumed it followed the browser behavior of returning an empty string when no search query is found.
sindresorhus
Metadata
Metadata
Assignees
Labels
urlIssues and PRs related to the legacy built-in url module.Issues and PRs related to the legacy built-in url module.