Add test coverage of int match failures

This commit is contained in:
Dean Herbert
2021-02-12 15:25:00 +09:00
parent bb9123eecd
commit 3799493536
2 changed files with 8 additions and 1 deletions

View File

@ -146,7 +146,10 @@ namespace osu.Game.Online.Chat
// https://osu.ppy.sh/beatmapsets/1154158#whatever
string trimmed = mainArg.Split('#').First();
return new LinkDetails(LinkAction.OpenBeatmapSet, trimmed);
if (int.TryParse(trimmed, out id))
return new LinkDetails(LinkAction.OpenBeatmapSet, id.ToString());
break;
}
case "u":