mlflow/server/js/src/utils/Utils.js
/**
   * Helper method for that returns a truncated version of the passed-in string (with trailing
   * ellipsis) if the string is longer than maxLength. Otherwise, just returns the passed-in string.
   */
Helper method for that returns a truncated version of the passed-in string (with trailing
ellipsis) if the string is longer than maxLength. Otherwise, just returns the passed-in string.
Helper method for that returns a truncated version of the passed - in string ( with trailing ellipsis ) if the string is longer than maxLength . Otherwise just returns the passed - in string .
static truncateString(string, maxLength) {
    if (string.length > maxLength) {
      return string.slice(0, maxLength - 3) + "...";
    }
    return string;
  }
static truncateString ( string , maxLength ) { if ( string . length > maxLength ) { return string . slice ( 0 , maxLength - 3 ) + "..." ; } return string ; }
Helper method for that returns a truncated version of the passed-in string (with trailing
 ellipsis) if the string is longer than maxLength.
Helper method for that returns a truncated version of the passed - in string ( with trailing ellipsis ) if the string is longer than maxLength .