animetorrents: replace non-word chars with wildcard in search term

This commit is contained in:
Bogdan 2023-05-24 01:08:22 +03:00
parent 0f5e919f33
commit 91307ff044
1 changed files with 2 additions and 2 deletions

View File

@ -117,8 +117,8 @@ namespace Jackett.Common.Indexers
var searchString = query.GetQueryString().Trim();
// replace any space, special char, etc. with % (wildcard)
searchString = Regex.Replace(searchString, "[^a-zA-Z0-9]+", "%");
// replace non-word characters with % (wildcard)
searchString = Regex.Replace(searchString, @"[\W]+", "%");
var searchUrl = SearchUrl;