Skip to content

Commit

Permalink
Update lib/url.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Trott authored Oct 19, 2022
1 parent 3bcb404 commit fc72c70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ Url.prototype.parse = function parse(url, parseQueryString, slashesDenoteHost) {
}
this.host = rest.slice(start, nonHost);
// WHATWG URL removes tabs, newlines, and carriage returns. Let's do that too.
this.host = this.host.replaceAll(/[\t\n\r]/g, '');
this.host = this.host.replace(/[\t\n\r]/g, '');
rest = rest.slice(nonHost);
}

Expand Down

0 comments on commit fc72c70

Please sign in to comment.