Merge branch 'master' into feat/releasetag

This commit is contained in:
zzjc1234 2024-10-13 12:39:19 +08:00
commit e7e24f7c8f

View File

@ -16,7 +16,7 @@ type Conf struct {
FullScore int FullScore int
MinScore int MinScore int
Files []string Files []string
EndOnMatch bool ForceQuitOnMatch bool
Matches []Match Matches []Match
} }
@ -58,7 +58,7 @@ func (*Keyword) Run(results []stage.ExecutorResult, confAny any) (
forceQuit := false forceQuit := false
for _, result := range results { for _, result := range results {
tmp, matched := Parse(result, *conf) tmp, matched := Parse(result, *conf)
if matched && conf.EndOnMatch { if matched && conf.ForceQuitOnMatch {
forceQuit = true forceQuit = true
} }
res = append(res, tmp) res = append(res, tmp)