summaryrefslogtreecommitdiff
path: root/lib/url.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/url.js')
-rw-r--r--lib/url.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/url.js b/lib/url.js
index eac9d1511b..29dec5cc5f 100644
--- a/lib/url.js
+++ b/lib/url.js
@@ -461,7 +461,7 @@ Url.prototype.parse = function parse(url, parseQueryString, slashesDenoteHost) {
this.path = p + s;
}
- // finally, reconstruct the href based on what has been validated.
+ // Finally, reconstruct the href based on what has been validated.
this.href = this.format();
return this;
};
@@ -629,7 +629,7 @@ Url.prototype.format = function format() {
pathname = newPathname;
}
- // only the slashedProtocols get the //. Not mailto:, xmpp:, etc.
+ // Only the slashedProtocols get the //. Not mailto:, xmpp:, etc.
// unless they had them to begin with.
if (this.slashes || slashedProtocol.has(protocol)) {
if (this.slashes || host) {
@@ -686,7 +686,7 @@ Url.prototype.resolveObject = function resolveObject(relative) {
// even href="" will remove it.
result.hash = relative.hash;
- // if the relative url is empty, then there's nothing left to do here.
+ // If the relative url is empty, then there's nothing left to do here.
if (relative.href === '') {
result.href = result.format();
return result;
@@ -888,7 +888,7 @@ Url.prototype.resolveObject = function resolveObject(relative) {
}
}
- // if the path is allowed to go above the root, restore leading ..s
+ // If the path is allowed to go above the root, restore leading ..s
if (!mustEndAbs && !removeAllDots) {
while (up--) {
srcPath.unshift('..');