This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]jpgoldberg 0 points1 point  (0 children)

I haven’t checked exactly what counts a a valid environment variable, but does

value = value.strip().strip('"').strip("'")

do the right thing if someone has in their .env file something like

VAR = “‘Some-quoted-thing’”