BeyondHD: replace special characters with wildcards

This commit is contained in:
kaso17 2017-01-06 16:09:22 +01:00
parent 9fcb16e535
commit dbe7561642
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}