mirror of
https://github.com/restic/restic.git
synced 2026-10-06 19:00:30 +00:00
Store reference to reject function for insensitive pattern rejection
This commit is contained in:
1 parent
deedc38129
commit
cdc287a7f6
1 file changed
+3
-1
@@ -93,8 +93,10 @@ func rejectByInsensitivePattern(patterns []string) RejectByNameFunc {
|
||||
for index, path := range patterns {
|
||||
patterns[index] = strings.ToLower(path)
|
||||
}
|
||||
|
||||
rejFunc := rejectByPattern(patterns)
|
||||
return func(item string) bool {
|
||||
return rejectByPattern(patterns)(strings.ToLower(item))
|
||||
return rejFunc(strings.ToLower(item))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user