Skip to content

Commit

Permalink
chore: dotenv parse imprs
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Dec 24, 2024
1 parent 489595f commit 1852d43
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,13 +396,15 @@ export const parseDotenv = (content: string): NodeJS.ProcessEnv => {
}

if (c === '"' || c === "'" || c === '`') {
if (!q) {
q = c
continue
}
if (q === c) {
q = ''
cap()
continue
}
q = c
continue
}
b += c
}
Expand Down

0 comments on commit 1852d43

Please sign in to comment.