Skip to content

Commit 423679a

Browse files
authored
Merge pull request #496 from databacker/accept-tz-regex-prune
accept TZ for RFC3339 in prune regex
2 parents 3ac9c75 + 6540f1d commit 423679a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/core/prune.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
)
1919

2020
// filenameRE is a regular expression to match a backup filename
21-
var filenameRE = regexp.MustCompile(`^db_backup_(\d{4})-(\d{2})-(\d{2})T(\d{2})[:-](\d{2})[:-](\d{2})Z\.\w+$`)
21+
var filenameRE = regexp.MustCompile(`^db_backup_(\d{4})-(\d{2})-(\d{2})T(\d{2})[:-](\d{2})[:-](\d{2})(Z|\-\d{2}:\d{2})\.\w+$`)
2222

2323
// Prune prune older backups
2424
func (e *Executor) Prune(ctx context.Context, opts PruneOptions) error {

0 commit comments

Comments
 (0)