Skip to content

Conversation

@IlyasShabi
Copy link
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-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
@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
Member Author

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

@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