1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 19:04:06 +08:00

somehow accidentally removed backslashes

This commit is contained in:
Lukynka CZE 2023-09-14 17:55:53 +02:00
parent 2a18f76b02
commit 9b8fdcbcdc

View File

@ -28,7 +28,7 @@ namespace osu.Game.Online.Chat
// http[s]://<domain>.<tld>[:port][/path][?query][#fragment] // http[s]://<domain>.<tld>[:port][/path][?query][#fragment]
private static readonly Regex advanced_link_regex = new Regex( private static readonly Regex advanced_link_regex = new Regex(
// protocol // protocol
@"(?<link>(https?|osu)[a-z]*?://" + @"(?<link>(https?|osu)[a-z]*?:\/\/" +
// domain + tld // domain + tld
@"(?<domain>(?:[a-z0-9]\.|[a-z0-9][a-z0-9-]*[a-z0-9]\.)*[a-z0-9-]*[a-z0-9]" + @"(?<domain>(?:[a-z0-9]\.|[a-z0-9][a-z0-9-]*[a-z0-9]\.)*[a-z0-9-]*[a-z0-9]" +
// port (optional) // port (optional)