Skip to content

Support negative values in trunc - #196

Merged
mattfarina merged 2 commits into
Masterminds:masterfrom
Dean-Coakley:negative-trunc-support
Oct 2, 2019
Merged

mattfarina merged 2 commits into
Masterminds:masterfrom
Dean-Coakley:negative-trunc-support

Conversation

@Dean-Coakley

Copy link
Copy Markdown
Contributor

Closes: #167

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

Comment thread strings_test.go 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