doc: fix spelling error in lib/url.js comment
PR-URL: https://github.com/nodejs/node/pull/4390 Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
3e740caaf3
commit
46eee3018b
@ -586,7 +586,7 @@ Url.prototype.resolveObject = function(relative) {
|
|||||||
// Put this after the other two cases because it simplifies the booleans
|
// Put this after the other two cases because it simplifies the booleans
|
||||||
if (psychotic) {
|
if (psychotic) {
|
||||||
result.hostname = result.host = srcPath.shift();
|
result.hostname = result.host = srcPath.shift();
|
||||||
//occationaly the auth can get stuck only in host
|
//occasionally the auth can get stuck only in host
|
||||||
//this especially happens in cases like
|
//this especially happens in cases like
|
||||||
//url.resolveObject('mailto:local1@domain1', 'local2@domain2')
|
//url.resolveObject('mailto:local1@domain1', 'local2@domain2')
|
||||||
var authInHost = result.host && result.host.indexOf('@') > 0 ?
|
var authInHost = result.host && result.host.indexOf('@') > 0 ?
|
||||||
@ -668,7 +668,7 @@ Url.prototype.resolveObject = function(relative) {
|
|||||||
if (psychotic) {
|
if (psychotic) {
|
||||||
result.hostname = result.host = isAbsolute ? '' :
|
result.hostname = result.host = isAbsolute ? '' :
|
||||||
srcPath.length ? srcPath.shift() : '';
|
srcPath.length ? srcPath.shift() : '';
|
||||||
//occationaly the auth can get stuck only in host
|
//occasionally the auth can get stuck only in host
|
||||||
//this especially happens in cases like
|
//this especially happens in cases like
|
||||||
//url.resolveObject('mailto:local1@domain1', 'local2@domain2')
|
//url.resolveObject('mailto:local1@domain1', 'local2@domain2')
|
||||||
var authInHost = result.host && result.host.indexOf('@') > 0 ?
|
var authInHost = result.host && result.host.indexOf('@') > 0 ?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user