Use raw string to avoid double escape

Issue: #3487
This commit is contained in:
dimw
2021-01-25 21:15:05 +01:00
parent b5012385c8
commit bb2d63ab58

View File

@@ -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 = "*"