fix(releases): improve search keyword specifiers (#1106)

fix(search): improve keyword specifiers.
This commit is contained in:
Kyle Sanderson 2023-09-11 04:34:52 -07:00 committed by GitHub
parent 041ca5ba34
commit 28b13d6d24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {