Kailash Nadh 6 лет назад
Родитель
Сommit
8e10bf3b16
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      subimporter/importer.go

+ 1 - 1
subimporter/importer.go

@@ -297,7 +297,7 @@ func (s *Session) ExtractZIP(srcPath string, maxCSVs int) (string, []string, err
 		}
 		}
 
 
 		// Skip files without the .csv extension.
 		// Skip files without the .csv extension.
-		if !strings.Contains(strings.ToLower(fName), "csv") {
+		if !strings.HasSuffix(strings.ToLower(fName), ".csv") {
 			s.log.Printf("skipping non .csv file '%s'", fName)
 			s.log.Printf("skipping non .csv file '%s'", fName)
 			continue
 			continue
 		}
 		}