Merge pull request #266 from Aireil/fix_url_regex

Require protocol for URL match
This commit is contained in:
goaaats 2021-02-20 13:59:59 +01:00 committed by GitHub
commit 02204eda7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;