diff --git a/VRChatActivityLogViewer/VRChatActivityLogViewer/DetailWindow.xaml.cs b/VRChatActivityLogViewer/VRChatActivityLogViewer/DetailWindow.xaml.cs index 8149ee3..b6658e8 100644 --- a/VRChatActivityLogViewer/VRChatActivityLogViewer/DetailWindow.xaml.cs +++ b/VRChatActivityLogViewer/VRChatActivityLogViewer/DetailWindow.xaml.cs @@ -68,7 +68,7 @@ private void InitializeView() if (activityLog.ActivityType == ActivityType.PlayedVideo) { // Youtubeのみ特別扱いして埋め込みプレイヤーを表示する - var youtubeUrlRegex = @"^https?://(www\.)youtube\.com/watch\?v=([^&]+).*$|^https?://youtu\.be/(.*)$"; + var youtubeUrlRegex = @"^https?://(www\.)?youtube\.com/watch\?v=([^&]+).*$|^https?://youtu\.be/(.*)$"; var match = Regex.Match(activityLog.Url, youtubeUrlRegex); if (match.Success)