diff --git a/src/env.ts b/src/env.ts index 988b59e..82cd5c3 100644 --- a/src/env.ts +++ b/src/env.ts @@ -30,8 +30,9 @@ export function readEnvFile(keys: string[]): Record { if (!wanted.has(key)) continue; let value = trimmed.slice(eqIdx + 1).trim(); if ( - (value.startsWith('"') && value.endsWith('"')) || - (value.startsWith("'") && value.endsWith("'")) + value.length >= 2 && + ((value.startsWith('"') && value.endsWith('"')) || + (value.startsWith("'") && value.endsWith("'"))) ) { value = value.slice(1, -1); }