Merge pull request #246 from Aireil/add_ll_back

This commit is contained in:
goaaats 2021-01-18 02:54:06 +01:00 committed by GitHub
commit 6545c097da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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
/*