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

fix: Base/Config/Validate panic #202

Merged
merged 3 commits into from Oct 18, 2023
Merged

fix: Base/Config/Validate panic #202

merged 3 commits into from Oct 18, 2023

Conversation

daffinito
Copy link
Contributor

Issue

#201

Goals

Resolve panic

Implementation Details

I added a function formatJs that formats the newrelic.js file into the format expected by parseJs and removes comments. I also removed any comment logic from parseJs since it'll all be parsed out in formatJs.

I found that multiline arrays values weren't having the quotes removed like the rest of the values, so I fixed that as well.

How to Test

go test ./...

@daffinito daffinito linked an issue Oct 17, 2023 that may be closed by this pull request
Copy link
Collaborator

@cade-conklin cade-conklin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the way

@daffinito daffinito merged commit f9f1d03 into main Oct 18, 2023
13 checks passed
@daffinito daffinito deleted the daffi/issue-201 branch October 18, 2023 15:38
@daffinito daffinito mentioned this pull request Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fails to parse node js config if key value is empty
2 participants