mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
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: https://github.com/nodejs/node/pull/5380 Reviewed-By: Evan Lucas <evanlucas@me.com>
This commit is contained in:
1 parent
c7f8a13043
commit
9424fa5732
1 file changed
+4
-4
+4
-4
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user