mirror of
https://github.com/ppy/osu.git
synced 2026-05-20 02:39:53 +08:00
f3c9dd7f3b
Fixes #36645 The IsolatedPhrase match mode in FilterCriteria used \s (whitespace) as word boundaries, meaning a search term had to be surrounded by spaces (or start/end of string) to match. This caused songs with titles like 'Music Theme "Some Artist"' to not appear when searching for "Some Artist", since the phrase was bounded by quote characters rather than spaces. This change extends the boundary pattern to also accept Unicode punctuation (\p{P}) alongside whitespace, so terms surrounded by quotes, commas are correctly matched as isolated phrases. Tests have been added to cover searching for terms adjacent to punctuation boundaries (TestCriteriaMatchingTermsAdjacentToPunctuation). Tests cover the example mentioned above. Code inspector with no errors and tests passing.
f3c9dd7f3b
·
2026-03-23 08:12:46 +01:00
History