EU Parliament Monitor — API Documentation - v0.8.22
    Preparing search index...

    Function truncateTitle

    • Truncate a title string to the suffix length limit with ellipsis. Used by all strategy title suffix builders for consistent truncation.

      Parameters

      • title: string

        Title string to truncate

      • maxLength: number = MAX_SUFFIX_LENGTH

        Maximum length (default: MAX_SUFFIX_LENGTH)

      Returns string

      Truncated title with ... suffix if over limit, else unchanged