-
Notifications
You must be signed in to change notification settings - Fork 45
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
Fixes trimming for windows. \r\n are not trimmed when using TrimSuffix #14
base: master
Are you sure you want to change the base?
Conversation
// brute force for the moment | ||
resultStr = strings.TrimSuffix(line, "\n") | ||
resultStr = strings.TrimSuffix(resultStr, "\n") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: I'm not sure of the reasoning for this line so I left it in, but I'm guessing you needed it to get rid of new lines no matter what since they probably weren't working for windows. Using Trim instead of TrimSuffix should solve this problem, so you may be able to remove this line
Could this be merged cc @tcnksm ? |
Will this ever be merged? |
...9102 years |
In regards to #12 this is the fix. The issues were: