addon/utils/url-regex.js
function shortenUrl ( url , length ) {

  if( !isBlank( url ) && url.length > length) {
      url = url.substr( 0 , length ) + "...";
  }

  return url;
}
function shortenUrl ( url , length ) {

  if( !isBlank( url ) && url.length > length) {
      url = url.substr( 0 , length ) + "...";
  }

  return url;
}
function shortenUrl ( url , length ) { if ( ! isBlank ( url ) && url . length > length ) { url = url . substr ( 0 , length ) + "..." ; } return url ; }
Shortens the URL and adds three dots to the end
Shortens the URL and adds three dots to the end