Change URL regex, optional protocol

This commit is contained in:
Aireil 2021-01-18 02:50:47 +01:00
parent 21a057e0bd
commit f99c0736f4

View file

@ -79,7 +79,7 @@ namespace Dalamud.Game {
}; };
private readonly Regex urlRegex = private readonly Regex urlRegex =
new Regex(@"(http|ftp|https)://([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])?", new Regex(@"((http|ftp|https)://)?([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])?",
RegexOptions.Compiled); RegexOptions.Compiled);
private bool hasSeenLoadingMsg; private bool hasSeenLoadingMsg;