mirror of
https://github.com/ppy/osu.git
synced 2025-02-06 14:33:12 +08:00
Merge pull request #14418 from LittleEndu/editor-regex
Change editor timestamp regex to not match non-editor ones
This commit is contained in:
commit
37c0550921
@ -43,7 +43,8 @@ namespace osu.Game.Online.Chat
|
|||||||
RegexOptions.IgnoreCase);
|
RegexOptions.IgnoreCase);
|
||||||
|
|
||||||
// 00:00:000 (1,2,3) - test
|
// 00:00:000 (1,2,3) - test
|
||||||
private static readonly Regex time_regex = new Regex(@"\d\d:\d\d:\d\d\d? [^-]*");
|
// regex from https://github.com/ppy/osu-web/blob/651a9bac2b60d031edd7e33b8073a469bf11edaa/resources/assets/coffee/_classes/beatmap-discussion-helper.coffee#L10
|
||||||
|
private static readonly Regex time_regex = new Regex(@"\b(((\d{2,}):([0-5]\d)[:.](\d{3}))(\s\((?:\d+[,|])*\d+\))?)");
|
||||||
|
|
||||||
// #osu
|
// #osu
|
||||||
private static readonly Regex channel_regex = new Regex(@"(#[a-zA-Z]+[a-zA-Z0-9]+)");
|
private static readonly Regex channel_regex = new Regex(@"(#[a-zA-Z]+[a-zA-Z0-9]+)");
|
||||||
|
Loading…
Reference in New Issue
Block a user