From 117f87f14af2cadd199c577bc18e3037db6ca4f5 Mon Sep 17 00:00:00 2001 From: MiaoYan JY Date: Tue, 3 Oct 2023 17:00:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E6=AD=A3=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaWpfGui/ViewModels/UI/CopilotViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MaaWpfGui/ViewModels/UI/CopilotViewModel.cs b/src/MaaWpfGui/ViewModels/UI/CopilotViewModel.cs index 2e480d5bad..044ca05871 100644 --- a/src/MaaWpfGui/ViewModels/UI/CopilotViewModel.cs +++ b/src/MaaWpfGui/ViewModels/UI/CopilotViewModel.cs @@ -300,7 +300,7 @@ namespace MaaWpfGui.ViewModels.UI AddLog(details, detailsColor); { Url = CopilotUiUrl; - var linkParser = new Regex(@"AV\d+/\?p=\d+|AV\d+|BV[a-zA-Z0-9]{10}/\?p=\d+|BV[a-zA-Z0-9]{10}", RegexOptions.Compiled | RegexOptions.IgnoreCase); + var linkParser = new Regex(@"(?:av\d+|bv[a-z0-9]{10})(?:\/\?p=\d+)?", RegexOptions.Compiled | RegexOptions.IgnoreCase); foreach (Match match in linkParser.Matches(details)) { Url = MaaUrls.BilibiliVideo + match.Value;