Skip to content

Commit e77b7c0

Browse files
Fixing up merge issue from #69
Signed-off-by: Dave Henderson <[email protected]>
1 parent 5c0e6c6 commit e77b7c0

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

godotenv.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -252,13 +252,7 @@ func parseLine(line string, envMap map[string]string) (key string, value string,
252252
}
253253

254254
// Parse the key
255-
key = splitString[0]
256-
if strings.HasPrefix(key, "export") {
257-
key = strings.TrimPrefix(key, "export")
258-
}
259-
key = strings.TrimSpace(key)
260-
261-
re := regexp.MustCompile(`^\s*(?:export\s+)?(.*?)\s*$`)
255+
re := regexp.MustCompile(`^\s*(?:export\s+)?(.*?)\s*$`)
262256
key = re.ReplaceAllString(splitString[0], "$1")
263257

264258
// Parse the value

0 commit comments

Comments
 (0)