Open ryanhex53 opened 2 weeks ago
Describe the bug
the @std/dotenv library can't handle multi line variable correctly, it only return the first line of the string.
@std/dotenv
Steps to Reproduce
.env
KEY="one line string second line string"
main.ts
import { load } from "@std/dotenv"; await load({ export: true }); console.log(Deno.env.get("KEY"));
deno run -A main.ts get output one line string
deno run -A main.ts
one line string
But if don't use @std/dotenv, only deno run -A --env-file main.ts main.ts
deno run -A --env-file main.ts
console.log(Deno.env.get("KEY"));
will get correct output one line string\nsecond line string
one line string\nsecond line string
Expected behavior
get multiline output one line string\nsecond line string while use @std/dotenv
Environment
Describe the bug
the
@std/dotenv
library can't handle multi line variable correctly, it only return the first line of the string.Steps to Reproduce
.env
main.ts
deno run -A main.ts
get outputone line string
But if don't use
@std/dotenv
, onlydeno run -A --env-file main.ts
main.tswill get correct output
one line string\nsecond line string
Expected behavior
get multiline output
one line string\nsecond line string
while use@std/dotenv
Environment