Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
url: group slashed protocols by protocol name
Reorder slashed protocols so they are grouped by protocol name. This is
done so it doesn't look like we're duplicating protocol names at the
bottom of the list.

PR-URL: #5380
Reviewed-By: Benjamin Gruenbaum
Reviewed-By: Evan Lucas <evanlucas@me.com>
  • Loading branch information
nettofarah committed Feb 25, 2016
commit 4df108e9459f57123c7f9a0bf370b972786d3da3
8 changes: 4 additions & 4 deletions lib/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ const hostlessProtocol = {
// protocols that always contain a // bit.
const slashedProtocol = {
'http': true,
'https': true,
'ftp': true,
'gopher': true,
'file': true,
'http:': true,
'https': true,
'https:': true,
'ftp': true,
'ftp:': true,
'gopher': true,
'gopher:': true,
'file': true,
'file:': true
};
const querystring = require('querystring');
Expand Down