mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 05:32:54 +08:00
Add failing test case for filters potentially crashing due to invalid regex
This commit is contained in:
parent
8a7a42b7ec
commit
4873aaf7ed
@ -169,6 +169,7 @@ namespace osu.Game.Tests.NonVisual.Filtering
|
||||
[TestCase("\"tags to\"", true)]
|
||||
[TestCase("\"version\"", false)]
|
||||
[TestCase("\"an auteur\"", true)]
|
||||
[TestCase("\"\\\"", true)] // nasty case, covers properly escaping user input in underlying regex.
|
||||
public void TestCriteriaMatchingExactTerms(string terms, bool filtered)
|
||||
{
|
||||
var exampleBeatmapInfo = getExampleBeatmap();
|
||||
|
Loading…
Reference in New Issue
Block a user