Member Junction
    Preparing search index...
    • Truncate text to fit within a platform's character limit. Adds an ellipsis indicator if truncated.

      Parameters

      • text: string

        Text to truncate.

      • maxLength: number

        Maximum character length (e.g., 3000 for Slack blocks).

      Returns string

      Truncated text with ellipsis if needed.