mirror of
https://github.com/Jackett/Jackett
synced 2025-02-24 23:22:46 +00:00
BeyondHD: replace special characters with wildcards
This commit is contained in:
parent
9fcb16e535
commit
dbe7561642
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue