mirror of https://github.com/Jackett/Jackett
BeyondHD: replace special characters with wildcards
This commit is contained in:
parent
9fcb16e535
commit
dbe7561642
|
@ -106,7 +106,9 @@ namespace Jackett.Indexers
|
|||
var queryCollection = new NameValueCollection();
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(searchString))
|
||||
{
|
||||
{
|
||||
Regex ReplaceRegex = new Regex("[^a-zA-Z0-9]+");
|
||||
searchString = ReplaceRegex.Replace(searchString, "%");
|
||||
queryCollection.Add("search", searchString);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue