mirror of
https://github.com/Jackett/Jackett.git
synced 2025-12-25 07:14:11 +01:00
animetorrents: replace non-word chars with wildcard in search term
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user