This commit is contained in:
Nuno Cruces 2023-04-12 11:08:58 +01:00
parent e5531d1bc8
commit a175ffa19d

View file

@ -43,11 +43,13 @@ func initFilters(filters FileFilters) []string {
buf.WriteString("--file-filter=") buf.WriteString("--file-filter=")
if f.Name != "" { if f.Name != "" {
buf.WriteString(f.Name) buf.WriteString(f.Name)
buf.WriteRune('|') buf.WriteByte('|')
}
for i, p := range f.Patterns {
if i != 0 {
buf.WriteByte(' ')
} }
for _, p := range f.Patterns {
buf.WriteString(p) buf.WriteString(p)
buf.WriteRune(' ')
} }
res = append(res, buf.String()) res = append(res, buf.String())
} }