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
I'd like to enforce a maximum length on my variables with "octostashe", what do you recommend? Truncate would be great if it didn't add an ellipsis and just, you know, truncated.
The text was updated successfully, but these errors were encountered:
Replace Truncate with Substring and you won't get any ellipses.
That'd be great, and is what I tried first, but for strings shorter than the "max length" it throws up and just returns the template. Would probably be fine If this just returned the string instead. Then all of those folks depending on the ellipses for their critical infrastructure will not be affected.
That is a problem. Not sure what you're use case is but if you're using the variables for a script probably easier to truncate them in the language. If it's for something like release notes, the Octo staff would need to provide a solution. Too bad we can't nest or chain filters.
I'd like to enforce a maximum length on my variables with "octostashe", what do you recommend? Truncate would be great if it didn't add an ellipsis and just, you know, truncated.
The text was updated successfully, but these errors were encountered: