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

trim strings with string.Trim #498

Merged
merged 1 commit into from
Aug 6, 2020

Conversation

Numpsy
Copy link
Contributor

@Numpsy Numpsy commented Aug 5, 2020

Is there a need to remove leading/trailing slashes with manual loops rather than using string.Trim to do both at once?

I certify that I own, and have sufficient rights to contribute, all source code and related material intended to be compiled or integrated with the source code for the SharpZipLib open source product (the "Contribution"). My Contribution is licensed under the MIT License.

Copy link
Member

@piksel piksel left a comment

Choose a reason for hiding this comment

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

No, this should be way more efficient. Odd.

@piksel piksel merged commit 2082f94 into icsharpcode:master Aug 6, 2020
@Numpsy Numpsy deleted the rw/name_transform/reduce_trim branch August 7, 2020 22:24
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