[bug] Issue when MaxLength is greater then string length and SmartTruncate is disabled
Aym3nTN opened this issue · comments
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
Thank you for fixing this bug. Merged and new version v1.13.1 released.