mirror of
https://github.com/ppy/osu.git
synced 2026-05-16 23:43:27 +08:00
Compile regexes for speed
This commit is contained in:
@@ -58,8 +58,8 @@ namespace osu.Game.Rulesets.Edit.Checks
|
||||
public MarkerCheck(string exact, string anyRegex)
|
||||
{
|
||||
CorrectMarkerFormat = exact;
|
||||
ExactRegex = new Regex(Regex.Escape(exact));
|
||||
AnyRegex = new Regex(anyRegex);
|
||||
ExactRegex = new Regex(Regex.Escape(exact), RegexOptions.Compiled);
|
||||
AnyRegex = new Regex(anyRegex, RegexOptions.Compiled);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user