mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-04 10:03:42 +08:00 
			
		
		
		
	add length check for lint message regex result
Signed-off-by: Talon Bowler <talon.bowler@docker.com>
This commit is contained in:
		@@ -459,7 +459,7 @@ func kebabToCamel(s string) string {
 | 
			
		||||
func (mr *lintMetricRecorder) Record(ss *client.SolveStatus) {
 | 
			
		||||
	for _, warning := range ss.Warnings {
 | 
			
		||||
		m := reLintMessage.FindSubmatch([]byte(warning.URL))
 | 
			
		||||
		if m == nil {
 | 
			
		||||
		if len(m) < 2 {
 | 
			
		||||
			continue
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user