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 abb17cc

Browse filesBrowse files
nikolasMyles Borins
authored andcommitted
doc: fix spelling error in lib/url.js comment
PR-URL: #4390 Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 6c00213 commit abb17cc
Copy full SHA for abb17cc

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎lib/url.js‎

Copy file name to clipboardExpand all lines: lib/url.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ Url.prototype.resolveObject = function(relative) {
586586
// Put this after the other two cases because it simplifies the booleans
587587
if (psychotic) {
588588
result.hostname = result.host = srcPath.shift();
589-
//occationaly the auth can get stuck only in host
589+
//occasionally the auth can get stuck only in host
590590
//this especially happens in cases like
591591
//url.resolveObject('mailto:local1@domain1', 'local2@domain2')
592592
var authInHost = result.host && result.host.indexOf('@') > 0 ?
@@ -668,7 +668,7 @@ Url.prototype.resolveObject = function(relative) {
668668
if (psychotic) {
669669
result.hostname = result.host = isAbsolute ? '' :
670670
srcPath.length ? srcPath.shift() : '';
671-
//occationaly the auth can get stuck only in host
671+
//occasionally the auth can get stuck only in host
672672
//this especially happens in cases like
673673
//url.resolveObject('mailto:local1@domain1', 'local2@domain2')
674674
var authInHost = result.host && result.host.indexOf('@') > 0 ?

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.