From fef81d890610eca07d04d427c345374079eabdff Mon Sep 17 00:00:00 2001 From: MiaoYan JY Date: Tue, 3 Oct 2023 14:04:15 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E5=8C=B9=E9=85=8Dav?= =?UTF-8?q?=E5=8F=B7=E3=80=81bv=E5=8F=B7=E4=BB=A5=E5=8F=8A=E5=88=86p?= =?UTF-8?q?=E7=9A=84=E6=94=AF=E6=8C=81?= 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 112758c796..2e480d5bad 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+|(BV.*?).{10}", RegexOptions.Compiled | RegexOptions.IgnoreCase); + 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); foreach (Match match in linkParser.Matches(details)) { Url = MaaUrls.BilibiliVideo + match.Value;