From f210a28ff92724259aa7a5d78e9fddc357f5f5ed Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Wed, 20 Dec 2017 09:55:36 -0200 Subject: [PATCH] fix: avoiding double escapes --- internal/nametemplate/name.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/nametemplate/name.go b/internal/nametemplate/name.go index 9760af5c6..8028862e3 100644 --- a/internal/nametemplate/name.go +++ b/internal/nametemplate/name.go @@ -10,7 +10,7 @@ import ( "github.com/goreleaser/goreleaser/internal/artifact" ) -var deprecatedBinary = regexp.MustCompile("\\{\\{ ?\\.Binary ?\\}\\}") +var deprecatedBinary = regexp.MustCompile(`\{\{ ?\.Binary ?\}\}`) // Apply applies the name template to the given artifact and name // TODO: this should be refactored alongside with other name template related todos