1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 08:55:35 +08:00

One more little change

Damn, i forgor. Sorry, CI runners.
This commit is contained in:
nullium21 2022-10-28 09:21:47 +03:00
parent c1e9398c19
commit 6901ed997d

View File

@ -137,7 +137,7 @@ namespace osu.Game.Extensions
return instance.OnlineID.Equals(other.OnlineID);
}
private static Regex invalid_filename_chars = new Regex(@"(?!$)[^A-Za-z0-9_()[\]. -]", RegexOptions.Compiled);
private static readonly Regex invalid_filename_chars = new Regex(@"(?!$)[^A-Za-z0-9_()[\]. \-]", RegexOptions.Compiled);
/// <summary>
/// Get a valid filename for use inside a zip file. Avoids backslashes being incorrectly converted to directories.