Skip to content

Commit

Permalink
Revert "service/backup: allow underscores in backup paths"
Browse files Browse the repository at this point in the history
This reverts commit 0cb5bd6.
  • Loading branch information
kevinbarbour authored and mmatczuk committed May 9, 2022
1 parent 94f76c3 commit 005b279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/service/backup/backupspec/location.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ var ErrInvalid = errors.Errorf("invalid location, the format is [dc:]<provider>:
// Providers require that resource names are DNS compliant.
// The following is a super simplified DNS (plus provider prefix)
// matching regexp.
var pattern = regexp.MustCompile(`^(([a-zA-Z0-9\-\_\.]+):)?([a-z0-9]+):([a-z0-9\-\.\/\_]+)$`)
var pattern = regexp.MustCompile(`^(([a-zA-Z0-9\-\_\.]+):)?([a-z0-9]+):([a-z0-9\-\.\/]+)$`)

// NewLocation first checks if location string conforms to valid pattern.
// It then returns the location split into three components dc, remote, and
Expand Down

0 comments on commit 005b279

Please sign in to comment.