summaryrefslogtreecommitdiff
path: root/lib/url.js
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2019-03-22 03:44:26 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2019-03-27 17:20:06 +0100
commitb08a867d6016ccf04783a0f91fdbcc3460daf234 (patch)
tree5df4b30220cde5ae5eac9ed956c9badac6ba08af /lib/url.js
parentfd992e6e36bb4b01a6ceb71cfeb3bae640b492a6 (diff)
downloadandroid-node-v8-b08a867d6016ccf04783a0f91fdbcc3460daf234.tar.gz
android-node-v8-b08a867d6016ccf04783a0f91fdbcc3460daf234.tar.bz2
android-node-v8-b08a867d6016ccf04783a0f91fdbcc3460daf234.zip
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>
Diffstat (limited to 'lib/url.js')
-rw-r--r--lib/url.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/url.js b/lib/url.js
index f50d180c7a..edc55c87aa 100644
--- a/lib/url.js
+++ b/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) {