summaryrefslogtreecommitdiff
path: root/lib/url.js
diff options
context:
space:
mode:
authornettofarah <nettofarah@gmail.com>2016-02-22 23:47:22 -0800
committerMyles Borins <mborins@us.ibm.com>2016-03-21 12:57:59 -0700
commitdff7091fce47b7686aa029fd5c2a49e884e9ea86 (patch)
treeaa783bee8b272a261d545885f36a41fccb3b326a /lib/url.js
parentb4fbe045149a927bbf5833efd53c907d0f886885 (diff)
downloadnodejs-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.js8
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');