add dot to build name regexp

allows build names like debian-8.3
This commit is contained in:
Doka 2016-02-28 13:54:13 +01:00 committed by Matthew Hooker
parent 3dc7873b21
commit 4256ab2cc2

View file

@ -18,7 +18,7 @@ import (
const archiveTemplateEntry = ".packer-template"
var (
reName = regexp.MustCompile("^[a-zA-Z0-9-_/]+$")
reName = regexp.MustCompile("^[a-zA-Z0-9-_./]+$")
errInvalidName = fmt.Errorf("Your build name can only contain these characters: %s", reName.String())
)