BeyondHD: add leading/tailing wildcard to search

This commit is contained in:
kaso17 2017-01-11 17:07:06 +01:00
parent 6d275244ef
commit ef3dfad4aa
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ namespace Jackett.Indexers
if (!string.IsNullOrWhiteSpace(searchString))
{
Regex ReplaceRegex = new Regex("[^a-zA-Z0-9]+");
searchString = ReplaceRegex.Replace(searchString, "%");
searchString = "%" + ReplaceRegex.Replace(searchString, "%") + "%";
queryCollection.Add("search", searchString);
}