From f76e8194fbbe9d61a8d4a2f0edd62171e307827a Mon Sep 17 00:00:00 2001 From: hensm Date: Thu, 8 Sep 2022 21:23:40 +0100 Subject: [PATCH] Fix match patterns matching on URLs with port numbers --- ext/src/lib/matchPattern.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/src/lib/matchPattern.ts b/ext/src/lib/matchPattern.ts index 8437f87..47eeefe 100644 --- a/ext/src/lib/matchPattern.ts +++ b/ext/src/lib/matchPattern.ts @@ -93,7 +93,7 @@ export class RemoteMatchPattern { } // If pattern host is not a wildcard - if (!this.matchesDomain(url.host)) { + if (!this.matchesDomain(url.hostname)) { return false; }