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

Sanitize csv strings #258

Merged
merged 4 commits into from
May 9, 2024
Merged

Sanitize csv strings #258

merged 4 commits into from
May 9, 2024

Conversation

PatDyn
Copy link
Contributor

@PatDyn PatDyn commented Jan 30, 2024

This should be a simple fix to #256

Two additional test cases were implemented to check some cases of possible input value patterns.
The fix itself is realized within the splitCSV function, which now by default replaces all " " by "".

I'm aware, that this might not be the most suitable place for this fix.
I thought of implementing it in one of the higher level function but was not sure about implications.

Feel free to comment of course :)

@yannh
Copy link
Owner

yannh commented May 8, 2024

This needs to be fixed and thanks for the contribution! I think I would prefer splitting on , first, and then calling https://pkg.go.dev/strings#TrimSpace on the elements. I might come back to this soon, I'd like this to be fixed 🙇

@yannh yannh merged commit ad166c7 into yannh:master May 9, 2024
@yannh
Copy link
Owner

yannh commented May 9, 2024

Merged, thank you!

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.

2 participants