From 199783a6d464c437d86ac5adcf0d13bae32fc3bc Mon Sep 17 00:00:00 2001 From: miteruzo Date: Mon, 25 Aug 2025 23:48:46 +0900 Subject: [PATCH] =?UTF-8?q?#17=20YouTube=20=E5=AF=BE=E5=BF=9C=EF=BC=88?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/PostEmbed.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/PostEmbed.tsx b/frontend/src/components/PostEmbed.tsx index 85ff567..abb0fbe 100644 --- a/frontend/src/components/PostEmbed.tsx +++ b/frontend/src/components/PostEmbed.tsx @@ -27,7 +27,7 @@ export default (({ post }: Props) => { return case 'youtube.com': { - const [videoId] = url.pathname.match (/(?<=\/watch\?v\=)[a-zA-Z0-9]+?(?=\/|$|&)/)! + const videoId = url.searchParams.get ('v')! return (