mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 10:32:19 +08:00
feat: WPF自动战斗对于作业描述的视频自动跳转增加av号支持
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user