mirror of
https://github.com/restic/restic.git
synced 2026-11-19 20:25:23 +00:00
filter: correctly stop pattern validation on first invalid part (#21812)
This commit is contained in:
1 parent
a639b8d711
commit
ccfb31b5fa
1 file changed
+1
-1
@@ -243,7 +243,7 @@ func ValidatePatterns(patterns []string) error {
|
||||
invalidPatterns = append(invalidPatterns, Pattern.original)
|
||||
|
||||
// If a single part is invalid, stop processing this pattern
|
||||
continue
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user