Skip to content

Commit

Permalink
url: group slashed protocols by protocol name
Browse files Browse the repository at this point in the history
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: Evan Lucas <evanlucas@me.com>
  • Loading branch information
nettofarah authored and Fishrock123 committed Mar 2, 2016
1 parent c7f8a13 commit 9424fa5
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit 9424fa5

Please sign in to comment.