mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
fix(releases): improve search keyword specifiers (#1106)
fix(search): improve keyword specifiers.
This commit is contained in:
parent
041ca5ba34
commit
28b13d6d24
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ func (repo *ReleaseRepo) findReleases(ctx context.Context, tx *Tx, params domain
|
|||
|
||||
search := strings.TrimSpace(params.Search)
|
||||
for k, v := range reserved {
|
||||
r := regexp.MustCompile(fmt.Sprintf(`(?:%s:)(?P<value>'.*?'|".*?"|\S+)`, k))
|
||||
r := regexp.MustCompile(fmt.Sprintf(`(?i)(?:%s:)(?P<value>'.*?'|".*?"|\S+)`, k))
|
||||
if reskey := r.FindAllStringSubmatch(search, -1); len(reskey) != 0 {
|
||||
filter := sq.Or{}
|
||||
for _, found := range reskey {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue