mirror of
https://github.com/joho/godotenv.git
synced 2025-07-02 23:14:04 +00:00
Merge branch 'master' into ignore-leading-whitespace
This commit is contained in:
@ -258,6 +258,9 @@ func parseLine(line string, envMap map[string]string) (key string, value string,
|
||||
}
|
||||
key = strings.TrimSpace(key)
|
||||
|
||||
re := regexp.MustCompile(`^\s*(?:export\s+)?(.*?)\s*$`)
|
||||
key = re.ReplaceAllString(splitString[0], "$1")
|
||||
|
||||
// Parse the value
|
||||
value = parseValue(splitString[1], envMap)
|
||||
return
|
||||
|
Reference in New Issue
Block a user