Skip to content

Commit 4df108e

Browse files
committed
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 <[email protected]>
1 parent ee7754b commit 4df108e

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
@@ -48,14 +48,14 @@ const hostlessProtocol = {
4848
// protocols that always contain a // bit.
4949
const slashedProtocol = {
5050
'http': true,
51-
'https': true,
52-
'ftp': true,
53-
'gopher': true,
54-
'file': true,
5551
'http:': true,
52+
'https': true,
5653
'https:': true,
54+
'ftp': true,
5755
'ftp:': true,
56+
'gopher': true,
5857
'gopher:': true,
58+
'file': true,
5959
'file:': true
6060
};
6161
const querystring = require('querystring');

0 commit comments

Comments
 (0)