1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-21 22:53:22 +08:00
This commit is contained in:
DTSDAO 2019-08-03 19:46:57 +08:00
parent 471103fd10
commit c9e14c8f06
2 changed files with 3 additions and 3 deletions

View File

@ -78,7 +78,7 @@ namespace osu.Game.Online.Chat
//since we just changed the line display text, offset any already processed links.
result.Links.ForEach(l => l.Index -= l.Index > index ? m.Length - displayText.Length : 0);
var details = getLinkDetails(linkText);
var details = GetLinkDetails(linkText);
result.Links.Add(new Link(linkText, index, displayText.Length, linkActionOverride ?? details.Action, details.Argument));
//adjust the offset for processing the current matches group.
@ -95,7 +95,7 @@ namespace osu.Game.Online.Chat
var link = m.Groups["link"].Value;
var indexLength = link.Length;
var details = getLinkDetails(link);
var details = GetLinkDetails(link);
result.Links.Add(new Link(link, index, indexLength, details.Action, details.Argument));
}
}

View File

@ -208,7 +208,7 @@ namespace osu.Game
Text = @"This link type is not yet supported!",
Icon = FontAwesome.Solid.LifeRing,
});
LinkDetails linkDetails = getLinkDetails(url);
LinkDetails linkDetails = GetLinkDetails(url);
Schedule(() => LinkUtils.HandleLink(url, linkDetails.Action, linkDetails.Argument, this, channelManager, showNotImplementedError));
}
else