diff options
author | nettofarah <nettofarah@gmail.com> | 2016-02-22 23:47:22 -0800 |
---|---|---|
committer | Myles Borins <mborins@us.ibm.com> | 2016-03-21 12:57:59 -0700 |
commit | dff7091fce47b7686aa029fd5c2a49e884e9ea86 (patch) | |
tree | aa783bee8b272a261d545885f36a41fccb3b326a /lib/url.js | |
parent | b4fbe045149a927bbf5833efd53c907d0f886885 (diff) | |
download | nodejs-dff7091fce47b7686aa029fd5c2a49e884e9ea86.tar.gz nodejs-dff7091fce47b7686aa029fd5c2a49e884e9ea86.tar.bz2 nodejs-dff7091fce47b7686aa029fd5c2a49e884e9ea86.zip |
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>
Diffstat (limited to 'lib/url.js')
-rw-r--r-- | lib/url.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/url.js b/lib/url.js index d9be77a1e..016acd08c 100644 --- a/lib/url.js +++ b/lib/url.js @@ -65,14 +65,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'); |