Require protocol for URL match

This commit is contained in:
Aireil 2021-02-20 13:27:06 +01:00
parent 2720c2d1eb
commit bab5cab867

View file

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