Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 610bd8d

Browse filesBrowse files
nettofarahevanlucas
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 <evanlucas@me.com>
1 parent 93bacfd commit 610bd8d
Copy full SHA for 610bd8d

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Collapse file

‎lib/url.js‎

Copy file name to clipboardExpand all lines: lib/url.js
+4-4Lines changed: 4 additions & 4 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.