Skip to content

Commit

Permalink
Fixing up merge issue from #69
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
  • Loading branch information
hairyhenderson committed Feb 4, 2019
1 parent 5c0e6c6 commit e77b7c0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions godotenv.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,13 +252,7 @@ func parseLine(line string, envMap map[string]string) (key string, value string,
}

// Parse the key
key = splitString[0]
if strings.HasPrefix(key, "export") {
key = strings.TrimPrefix(key, "export")
}
key = strings.TrimSpace(key)

re := regexp.MustCompile(`^\s*(?:export\s+)?(.*?)\s*$`)
re := regexp.MustCompile(`^\s*(?:export\s+)?(.*?)\s*$`)
key = re.ReplaceAllString(splitString[0], "$1")

// Parse the value
Expand Down

0 comments on commit e77b7c0

Please sign in to comment.