This commit is contained in:
goat 2021-01-18 12:16:07 +01:00
commit 10d5c6829d
2 changed files with 23 additions and 0 deletions

View file

@ -78,8 +78,14 @@ namespace Dalamud.Game {
}
};
private readonly Regex urlRegex =
new Regex(@"((http|ftp|https)://)?([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])?",
RegexOptions.Compiled);
private bool hasSeenLoadingMsg;
public string LastLink { get; private set; }
public ChatHandlers(Dalamud dalamud) {
this.dalamud = dalamud;
@ -160,6 +166,9 @@ namespace Dalamud.Game {
var messageCopy = message;
var senderCopy = sender;
var linkMatch = this.urlRegex.Match(message.TextValue);
if (linkMatch.Value.Length > 0)
LastLink = linkMatch.Value;
// Handle all of this with SeString some day
/*