src: safely remove the last line from dotenv · nodejs/node@8af1b53 · GitHub
Skip to content

Commit 8af1b53

Browse files
islandryumarco-ippolito
authored andcommitted
src: safely remove the last line from dotenv
Refs: #55925 PR-URL: #55982 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
1 parent 674b932 commit 8af1b53

4 files changed

Lines changed: 32 additions & 2 deletions

File tree

src/node_dotenv.cc

Lines changed: 8 additions & 2 deletions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BASIC='basic'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BASIC="basic"

test/parallel/test-dotenv-edge-cases.js

Lines changed: 22 additions & 0 deletions

0 commit comments

Comments
 (0)