You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the truncate function, the slug can be longer than MaxLength on specific conditions. See this example:
original string (of length 11): "abcde-fghij"
MaxLength: 10
expected string: "abcde"
output string: "abcde-fghij"
Current function fails on this edge case because the last word doesn't end with a "-" during the max length test here so the - 1 is wrongfully applied.
The text was updated successfully, but these errors were encountered:
When using the truncate function, the slug can be longer than
MaxLength
on specific conditions. See this example:Current function fails on this edge case because the last word doesn't end with a "-" during the max length test here so the
- 1
is wrongfully applied.The text was updated successfully, but these errors were encountered: