Skip to content

src: remove comments from env file - #52120

Closed
IlyasShabi wants to merge 1 commit into
nodejs:mainfrom
IlyasShabi:dotenv-remove-comments
Closed

src: remove comments from env file#52120
IlyasShabi wants to merge 1 commit into
nodejs:mainfrom
IlyasShabi:dotenv-remove-comments

Conversation

@IlyasShabi

Copy link
Copy Markdown
Member

Addressing this issue
The regex wasn't dealing with multiple comment lines properly. I added a function to remove all comments first, then apply the regex to the cleaned-up content.

@nodejs-github-botnodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. labels Mar 16, 2024
@IlyasShabi
IlyasShabiforce-pushed the dotenv-remove-comments branch from 4d101fc to 1f40a6eCompareMarch 16, 2024 23:28
@anonrig
anonrig requested a review from lemireMarch 17, 2024 02:26
Comment threadsrc/node_dotenv.cc Outdated
@marco-ippolitomarco-ippolito changed the title src: remove comments from evn filesrc: remove comments from env fileMar 17, 2024
@IlyasShabi
IlyasShabiforce-pushed the dotenv-remove-comments branch from 1f40a6e to d3d4f4aCompareMarch 17, 2024 15:40
@IlyasShabi

Copy link
Copy Markdown
MemberAuthor

Could you please review this PR @lemire@anonrig@RafaelGSS@MoLow ?

Comment threadsrc/node_dotenv.cc Outdated
@IlyasShabi
IlyasShabiforce-pushed the dotenv-remove-comments branch 2 times, most recently from 0c013f6 to 2362451CompareMarch 22, 2024 20:05
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++Issues and PRs that require attention from people who are familiar with C++.needs-ciPRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@IlyasShabi@anonrig@MoLow@nodejs-github-bot@ilyasShabiCS