refactor(parser/keyword): rename EndOnMatch -> ForceQuitOnMatch
This commit is contained in:
		
							parent
							
								
									cdab5ab4c8
								
							
						
					
					
						commit
						303e742d90
					
				|  | @ -13,11 +13,11 @@ type Match struct { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| type Conf struct { | type Conf struct { | ||||||
| 	FullScore  int | 	FullScore        int | ||||||
| 	MinScore   int | 	MinScore         int | ||||||
| 	Files      []string | 	Files            []string | ||||||
| 	EndOnMatch bool | 	ForceQuitOnMatch bool | ||||||
| 	Matches    []Match | 	Matches          []Match | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| type Keyword struct{} | type Keyword struct{} | ||||||
|  | @ -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) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user