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

[bug] Issue when MaxLength is greater then string length and SmartTruncate is disabled #76

Closed
Aym3nTN opened this issue Oct 5, 2022 · 1 comment
Labels

Comments

@Aym3nTN
Copy link
Contributor

Aym3nTN commented Oct 5, 2022

When trying to truncate a string with a value greater than its size, we get the below error.

Example of failed test: {"DOBROSLAWZYBORT", 17, "dobroslawzybort", false}

--- FAIL: TestSlugMakeSmartTruncate (0.01s)
panic: runtime error: slice bounds out of range [:17] with length 15 [recovered]
	panic: runtime error: slice bounds out of range [:17] with length 15
This was referenced Oct 5, 2022
@matrixik
Copy link
Member

matrixik commented Oct 5, 2022

Thank you for fixing this bug. Merged and new version v1.13.1 released.

@matrixik matrixik closed this as completed Oct 5, 2022
@matrixik matrixik added the bug label Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants