Skip to content

Commit

Permalink
Merge pull request compose#120 from letsgolesco/119_config_env_unders…
Browse files Browse the repository at this point in the history
…cores

Add underscore to config environment variable regexp
  • Loading branch information
jipperinbham committed Aug 20, 2015
2 parents 3e56597 + 9c38785 commit b692b93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/transporter/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func LoadConfig(filename string) (config Config, err error) {
// setConfigEnvironment replaces environment variables marked in the form ${FOO} with the
// value stored in the environment variable `FOO`
func setConfigEnvironment(ba []byte) []byte {
re := regexp.MustCompile(`\$\{([a-zA-Z0-9]+)\}`)
re := regexp.MustCompile(`\$\{([a-zA-Z0-9_]+)\}`)

matches := re.FindAllSubmatch(ba, -1)
if matches == nil {
Expand Down

0 comments on commit b692b93

Please sign in to comment.