feat: WPF自动战斗对于作业描述的视频自动跳转增加av号支持 (#6363)

This commit is contained in:
uye
2023-09-15 10:52:48 +08:00
committed by GitHub

View File

@@ -266,7 +266,7 @@ namespace MaaWpfGui.ViewModels.UI
AddLog(details, detailsColor);
{
Url = CopilotUiUrl;
var linkParser = new Regex("(BV.*?).{10}", RegexOptions.Compiled | RegexOptions.IgnoreCase);
var linkParser = new Regex(@"AV\d+|(BV.*?).{10}", RegexOptions.Compiled | RegexOptions.IgnoreCase);
foreach (Match match in linkParser.Matches(details))
{
Url = "https://www.bilibili.com/video/" + match.Value;