mirror of
https://github.com/ppy/osu
synced 2024-12-18 04:46:09 +00:00
Fix multiple difficulty search queries not working in some cases.
This commit is contained in:
parent
ab57cbf6f5
commit
74896fd6b2
@ -25,8 +25,12 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
internal static void ApplyQueries(FilterCriteria criteria, string query)
|
||||
{
|
||||
foreach (Match match in difficulty_query_syntax_regex.Matches(query))
|
||||
while (true)
|
||||
{
|
||||
var match = difficulty_query_syntax_regex.Matches(query).FirstOrDefault();
|
||||
|
||||
if (match is null) break;
|
||||
|
||||
// Trim the first character because it's always '[' (ignoring spaces)
|
||||
string cleanDifficultyQuery = match.Value.Trim(' ')[1..];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user