diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2019-03-07 01:03:53 +0100 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2019-03-10 00:44:40 +0100 |
commit | f8763bb077db2f0be74e353c0b4f9e353c0fffa8 (patch) | |
tree | c73128074daa65d2e72e4d2a86a5b08059888144 /lib/url.js | |
parent | 01a5300f3f4f788a043f6b5fe72e2b7b641dfb6c (diff) | |
download | android-node-v8-f8763bb077db2f0be74e353c0b4f9e353c0fffa8.tar.gz android-node-v8-f8763bb077db2f0be74e353c0b4f9e353c0fffa8.tar.bz2 android-node-v8-f8763bb077db2f0be74e353c0b4f9e353c0fffa8.zip |
benchmark,doc,lib,test: capitalize comments
PR-URL: https://github.com/nodejs/node/pull/26483
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'lib/url.js')
-rw-r--r-- | lib/url.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/url.js b/lib/url.js index 78dcbe7130..391d6c2723 100644 --- a/lib/url.js +++ b/lib/url.js @@ -80,12 +80,12 @@ const unsafeProtocol = new SafeSet([ 'javascript', 'javascript:' ]); -// protocols that never have a hostname. +// Protocols that never have a hostname. const hostlessProtocol = new SafeSet([ 'javascript', 'javascript:' ]); -// protocols that always contain a // bit. +// Protocols that always contain a // bit. const slashedProtocol = new SafeSet([ 'http', 'http:', @@ -367,7 +367,7 @@ Url.prototype.parse = function parse(url, parseQueryString, slashesDenoteHost) { if (this.hostname.length > hostnameMaxLen) { this.hostname = ''; } else { - // hostnames are always lower case. + // Hostnames are always lower case. this.hostname = this.hostname.toLowerCase(); } @@ -396,8 +396,8 @@ Url.prototype.parse = function parse(url, parseQueryString, slashesDenoteHost) { } } - // now rest is set to the post-host stuff. - // chop off any delim chars. + // Now rest is set to the post-host stuff. + // Chop off any delim chars. if (!unsafeProtocol.has(lowerProto)) { // First, make 100% sure that any "autoEscape" chars get // escaped, even if encodeURIComponent doesn't think they @@ -810,7 +810,7 @@ Url.prototype.resolveObject = function resolveObject(relative) { result.search = relative.search; result.query = relative.query; srcPath = relPath; - // fall through to the dot-handling below. + // Fall through to the dot-handling below. } else if (relPath.length) { // it's relative // throw away the existing file, and take the new path instead. |