Skip to content

Commit

Permalink
fixes a bug when env value has multiple =
Browse files Browse the repository at this point in the history
  • Loading branch information
rfns authored Jul 29, 2020
1 parent 783692a commit fc19ae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cls/DotEnv/Parser.cls
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ ClassMethod CreateArray(out As %Stream.Object) As %ArrayOfDataTypes [ Internal ]
set line = out.ReadLine()
continue:line=""
set envName = $piece(line, "=")
set envValue = $piece(line, "=", 2)
set envValue = $piece(line, "=", 2, *)
if $extract(envValue) = $char(34) && ($extract(envValue, *) = $char(34)) {
set envValue = $zconvert($extract(envValue, 2, *-1), "I", "JS")
}
Expand Down

0 comments on commit fc19ae7

Please sign in to comment.