From f653595fc3fd04933af1b6ccab657ea014c02208 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Sun, 14 Jul 2024 16:11:32 +0900 Subject: [PATCH] fix --- packages/frontend/src/scripts/url.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/scripts/url.ts b/packages/frontend/src/scripts/url.ts index 07fb900995a8..5a8265af9e10 100644 --- a/packages/frontend/src/scripts/url.ts +++ b/packages/frontend/src/scripts/url.ts @@ -24,5 +24,5 @@ export function appendQuery(url: string, query: string): string { export function extractDomain(url: string) { const match = url.match(/^(?:https?:)?(?:\/\/)?(?:[^@\n]+@)?([^:\/\n]+)/im); - return match ? match[2] : null; + return match ? match[1] : null; }