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

Support negative values in trunc #196

Merged
merged 2 commits into from
Oct 2, 2019

Conversation

Dean-Coakley
Copy link
Contributor

Closes: #167

trunc -5 "hi, world"
// "world"

strings_test.go Show resolved Hide resolved
@mattfarina mattfarina merged commit bee6f49 into Masterminds:master Oct 2, 2019
@Dean-Coakley Dean-Coakley deleted the negative-trunc-support branch October 2, 2019 18:48
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.

Allow trunc to accept negative lengths
3 participants