Skip to content

Commit dff7091

Browse files
nettofarahMyles Borins
authored andcommitted
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: Evan Lucas <evanlucas@me.com>
1 parent b4fbe04 commit dff7091

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/url.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ const hostlessProtocol = {
6565
// protocols that always contain a // bit.
6666
const slashedProtocol = {
6767
'http': true,
68-
'https': true,
69-
'ftp': true,
70-
'gopher': true,
71-
'file': true,
7268
'http:': true,
69+
'https': true,
7370
'https:': true,
71+
'ftp': true,
7472
'ftp:': true,
73+
'gopher': true,
7574
'gopher:': true,
75+
'file': true,
7676
'file:': true
7777
};
7878
const querystring = require('querystring');

0 commit comments

Comments
 (0)