mirror of https://github.com/Jackett/Jackett
animetorrents: replace non-word chars with wildcard in search term
This commit is contained in:
parent
0f5e919f33
commit
91307ff044
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue