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>
pull/5501/head
nettofarah 2016-02-22 23:47:22 -08:00 committed by Evan Lucas
parent 93bacfd00f
commit 610bd8d567
1 changed files with 4 additions and 4 deletions

View File

@ -48,14 +48,14 @@ const hostlessProtocol = {
// protocols that always contain a // bit. // protocols that always contain a // bit.
const slashedProtocol = { const slashedProtocol = {
'http': true, 'http': true,
'https': true,
'ftp': true,
'gopher': true,
'file': true,
'http:': true, 'http:': true,
'https': true,
'https:': true, 'https:': true,
'ftp': true,
'ftp:': true, 'ftp:': true,
'gopher': true,
'gopher:': true, 'gopher:': true,
'file': true,
'file:': true 'file:': true
}; };
const querystring = require('querystring'); const querystring = require('querystring');