mirror of
https://github.com/ppy/osu
synced 2025-01-24 06:43:04 +00:00
Compile regexes for speed
This commit is contained in:
parent
901fec65ef
commit
32b3d3d7df
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user