Skip to content

Commit

Permalink
service/backup: allow underscores in backup paths
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbarbour committed May 2, 2022
1 parent 5021492 commit dabaaa8
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 dabaaa8

Please sign in to comment.