Using raw string in regexp
@@ -164,7 +164,7 @@ func streamBuildLogs(logURL string, out io.Writer) error {
// ACR needs the image tag in the following format
// <repository>:<tag>
func getImageTagWithoutFQDN(imageTag string) (string, error) {
- r, err := regexp.Compile(".*\\..*\\..*/(.*)")
+ r, err := regexp.Compile(`.*\..*\..*/(.*)`)
if err != nil {
return "", errors.Wrap(err, "create regexp")
}
