config: fix NameRegexp validation to allow single-char names
This commit is contained in:
parent
ef2500932d
commit
8b9e2c17cc
|
@ -18,7 +18,7 @@ import (
|
||||||
|
|
||||||
// NameRegexp is the regular expression that all names (modules, providers,
|
// NameRegexp is the regular expression that all names (modules, providers,
|
||||||
// resources, etc.) must follow.
|
// resources, etc.) must follow.
|
||||||
var NameRegexp = regexp.MustCompile(`(?i)\A[A-Z_][A-Z0-9\-\_]+\z`)
|
var NameRegexp = regexp.MustCompile(`(?i)\A[A-Z_][A-Z0-9\-\_]*\z`)
|
||||||
|
|
||||||
// Config is the configuration that comes from loading a collection
|
// Config is the configuration that comes from loading a collection
|
||||||
// of Terraform templates.
|
// of Terraform templates.
|
||||||
|
|
Loading…
Reference in New Issue