| 1 |
import { ellipsis } from '../utils'; |
| 2 |
/** |
| 3 |
* A truncation feature where the ellipsis will be placed at the end of the URL. |
| 4 |
* |
| 5 |
* @param {String} anchorText |
| 6 |
* @param {Number} truncateLen The maximum length of the truncated output URL string. |
| 7 |
* @param {String} ellipsisChars The characters to place within the url, e.g. "..". |
| 8 |
* @return {String} The truncated URL. |
| 9 |
*/ |
| 10 |
export function truncateEnd(anchorText, truncateLen, ellipsisChars) { |
| 11 |
return ellipsis(anchorText, truncateLen, ellipsisChars); |
| 12 |
} |
| 13 |
//# sourceMappingURL=truncate-end.js.map |