# coffeescript elideBefore = (text, elideLength) -> if text.length < elideLength then text else text.slice(0, elideLength).replace /\W\w*.{3}$/, '...'