mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-01 11:47:07 -06:00
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
Block a user