Skip to content

Commit

Permalink
⬆️ 1.3.11 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
IonicaBizau committed Jun 12, 2017
1 parent 39f47d9 commit 47705b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function parseUrl(url) {
parts = parts.filter(Boolean);

// Stringify the pathname
output.pathname = output.pathname || ((output.protocol !== "file" ? "/" : "") + parts.join("/"));
output.pathname = output.pathname || ((output.protocol !== "file" || output.href[0] === "/" ? "/" : "") + parts.join("/"));

// #some-hash
splits = output.pathname.split("#");
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "parse-url",
"version": "1.3.10",
"version": "1.3.11",
"description": "An advanced url parser supporting git urls too.",
"main": "lib/index.js",
"directories": {
Expand Down

0 comments on commit 47705b1

Please sign in to comment.