Browse Source

Allow digits in env variable names

Svilen Markov 7 months ago
parent
commit
a1afdb0c63
1 changed files with 1 additions and 1 deletions
  1. 1 1
      internal/glance/config-fields.go

+ 1 - 1
internal/glance/config-fields.go

@@ -117,7 +117,7 @@ func (d *durationField) UnmarshalYAML(node *yaml.Node) error {
 	return nil
 }
 
-var optionalEnvFieldPattern = regexp.MustCompile(`(^|.)\$\{([A-Z_]+)\}`)
+var optionalEnvFieldPattern = regexp.MustCompile(`(^|.)\$\{([A-Z0-9_]+)\}`)
 
 type optionalEnvField string