Skip to content

Commit

Permalink
Use raw string to avoid double escape
Browse files Browse the repository at this point in the history
Issue: #3487
  • Loading branch information
dimw committed Jan 25, 2021
1 parent b501238 commit bb2d63a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kustomize/internal/commands/edit/set/setimage.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type setImageOptions struct {
imageMap map[string]types.Image
}

var pattern = regexp.MustCompile("^(.*):([a-zA-Z0-9._-]*|\\*)$")
var pattern = regexp.MustCompile(`^(.*):([a-zA-Z0-9._-]*|\*)$`)

var preserveSeparator = "*"

Expand Down

0 comments on commit bb2d63a

Please sign in to comment.