Skip to content

Commit 9cfedd7

Browse files
committed
fix: timezone regex support safechars
Signed-off-by: Akkuman <akkumans@qq.com>
1 parent 5c45412 commit 9cfedd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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|[\-\+]\d{2}:\d{2})\.\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)