diff --git a/main.go b/main.go index 01e3710..6fe0aa8 100644 --- a/main.go +++ b/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)) } }