We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5da6124 commit a1f4bfbCopy full SHA for a1f4bfb
1 file changed
lib/url.js
@@ -584,9 +584,11 @@ Url.prototype.format = function format() {
584
if (this.host) {
585
host = auth + this.host;
586
} else if (this.hostname) {
587
- host = auth + (this.hostname.indexOf(':') === -1 ?
588
- this.hostname :
589
- '[' + this.hostname + ']');
+ host = auth + (
+ this.hostname.indexOf(':') === -1 ?
+ this.hostname :
590
+ '[' + this.hostname + ']'
591
+ );
592
if (this.port) {
593
host += ':' + this.port;
594
}
0 commit comments