Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: remove comments from env file #52120

Closed
wants to merge 1 commit into from

Conversation

IlyasShabi
Copy link
Contributor

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-bot nodejs-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 IlyasShabi force-pushed the dotenv-remove-comments branch from 4d101fc to 1f40a6e Compare March 16, 2024 23:28
@anonrig anonrig requested a review from lemire March 17, 2024 02:26
src/node_dotenv.cc Outdated Show resolved Hide resolved
@marco-ippolito marco-ippolito changed the title src: remove comments from evn file src: remove comments from env file Mar 17, 2024
@IlyasShabi IlyasShabi force-pushed the dotenv-remove-comments branch from 1f40a6e to d3d4f4a Compare March 17, 2024 15:40
@IlyasShabi
Copy link
Contributor Author

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

src/node_dotenv.cc Outdated Show resolved Hide resolved
@IlyasShabi IlyasShabi force-pushed the dotenv-remove-comments branch 2 times, most recently from 0c013f6 to 2362451 Compare March 22, 2024 20:05
Sign up for free to 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-ci PRs that need a full CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants