From fc72c70fa3f52282206300a885a84ab144d77827 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 18 Oct 2022 20:04:30 -0700 Subject: [PATCH] Update lib/url.js --- lib/url.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/url.js b/lib/url.js index 5c7156a6bd48d7..6eca6c9ecc20ff 100644 --- a/lib/url.js +++ b/lib/url.js @@ -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); }