source: node_modules/autolinker/dist/es2015/truncate/truncate-end.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 541 bytes
RevLine 
[d24f17c]1import { 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 */
10export function truncateEnd(anchorText, truncateLen, ellipsisChars) {
11 return ellipsis(anchorText, truncateLen, ellipsisChars);
12}
13//# sourceMappingURL=truncate-end.js.map
Note: See TracBrowser for help on using the repository browser.