Update packer/core.go

Co-Authored-By: Adrien Delorme <azr@users.noreply.github.com>
This commit is contained in:
Megan Marsh 2020-03-12 09:50:02 -07:00 committed by GitHub
parent 051155270f
commit ad5495ac8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -350,7 +350,7 @@ func (c *Core) validate() error {
func isDoneInterpolating(v string) (bool, error) {
// Check for whether the var contains any more references to `user`, wrapped
// in interpolation syntax.
filter := "{{\\s*|user\\s*|\\x60?.*\\x60?}}"
filter := `{{\s*|user\s*|\x60?.*\x60?}}`
matched, err := regexp.MatchString(filter, v)
if err != nil {
return false, fmt.Errorf("Can't tell if interpolation is done: %s", err)