mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
benchmark,doc,lib: capitalize more comments
PR-URL: https://github.com/nodejs/node/pull/26849 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
This commit is contained in:
parent
fd992e6e36
commit
b08a867d60
232 changed files with 466 additions and 473 deletions
11
lib/url.js
11
lib/url.js
|
@ -258,7 +258,7 @@ Url.prototype.parse = function parse(url, parseQueryString, slashesDenoteHost) {
|
|||
rest = rest.slice(proto.length);
|
||||
}
|
||||
|
||||
// figure out if it's got a host
|
||||
// Figure out if it's got a host
|
||||
// user@server is *always* interpreted as a hostname, and url
|
||||
// resolution will treat //foo/bar as host=foo,path=bar because that's
|
||||
// how the browser resolves relative URLs.
|
||||
|
@ -448,7 +448,7 @@ Url.prototype.parse = function parse(url, parseQueryString, slashesDenoteHost) {
|
|||
this.pathname = '/';
|
||||
}
|
||||
|
||||
// to support http.request
|
||||
// To support http.request
|
||||
if (this.pathname || this.search) {
|
||||
const p = this.pathname || '';
|
||||
const s = this.search || '';
|
||||
|
@ -746,7 +746,7 @@ Url.prototype.resolveObject = function resolveObject(relative) {
|
|||
result.auth = relative.auth;
|
||||
result.hostname = relative.hostname || relative.host;
|
||||
result.port = relative.port;
|
||||
// to support http.request
|
||||
// To support http.request
|
||||
if (result.pathname || result.search) {
|
||||
var p = result.pathname || '';
|
||||
var s = result.search || '';
|
||||
|
@ -819,7 +819,7 @@ Url.prototype.resolveObject = function resolveObject(relative) {
|
|||
result.search = relative.search;
|
||||
result.query = relative.query;
|
||||
} else if (relative.search !== null && relative.search !== undefined) {
|
||||
// just pull out the search.
|
||||
// Just pull out the search.
|
||||
// like href='?foo'.
|
||||
// Put this after the other two cases because it simplifies the booleans
|
||||
if (noLeadingSlashes) {
|
||||
|
@ -846,8 +846,7 @@ Url.prototype.resolveObject = function resolveObject(relative) {
|
|||
}
|
||||
|
||||
if (!srcPath.length) {
|
||||
// no path at all. easy.
|
||||
// we've already handled the other stuff above.
|
||||
// No path at all. All other things were already handled above.
|
||||
result.pathname = null;
|
||||
// To support http.request
|
||||
if (result.search) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue