Skip to content

Commit 9424fa5

Browse files
nettofarahFishrock123
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 <[email protected]>
1 parent c7f8a13 commit 9424fa5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/url.js

+4-4
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)