allow empty lines
This commit is contained in:
parent
f639651970
commit
da57f36193
2
main.go
2
main.go
@ -67,7 +67,7 @@ func parseEnvFile(r io.Reader) []string {
|
||||
if len(matches) != 0 {
|
||||
key, value := matches[1], os.ExpandEnv(matches[2])
|
||||
env = append(env, fmt.Sprintf("%s=%s", key, value))
|
||||
} else if !EnvCommentRegex.MatchString(s.Text()) {
|
||||
} else if s.Text() != "" && !EnvCommentRegex.MatchString(s.Text()) {
|
||||
panic(fmt.Sprintf("invalid env syntax on line %d", l))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user