1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-03-10 14:14:25 +00:00

rutracker: searchString regexp fix (#15137)

This commit is contained in:
Lokkenum 2024-03-10 13:06:27 +03:00 committed by GitHub
parent 75f0ffe3e5
commit a8c44b96a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1519,7 +1519,7 @@ namespace Jackett.Common.Indexers
// replace any space, special char, etc. with % (wildcard) // replace any space, special char, etc. with % (wildcard)
if (!string.IsNullOrWhiteSpace(searchString)) if (!string.IsNullOrWhiteSpace(searchString))
{ {
searchString = new Regex("[^a-zA-Zа-яА-Я0-9]+").Replace(searchString, "%"); searchString = new Regex("[^a-zA-Zа-яА-ЯёЁ0-9]+").Replace(searchString, "%");
} }
// if the search string is empty use the getnew view // if the search string is empty use the getnew view