mirror of
https://github.com/ppy/osu.git
synced 2025-02-14 02:43:02 +08: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)
|
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)
|
// Trim the first character because it's always '[' (ignoring spaces)
|
||||||
string cleanDifficultyQuery = match.Value.Trim(' ')[1..];
|
string cleanDifficultyQuery = match.Value.Trim(' ')[1..];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user