source: node_modules/autolinker/dist/commonjs/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: 687 bytes
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.truncateEnd = void 0;
4var utils_1 = require("../utils");
5/**
6 * A truncation feature where the ellipsis will be placed at the end of the URL.
7 *
8 * @param {String} anchorText
9 * @param {Number} truncateLen The maximum length of the truncated output URL string.
10 * @param {String} ellipsisChars The characters to place within the url, e.g. "..".
11 * @return {String} The truncated URL.
12 */
13function truncateEnd(anchorText, truncateLen, ellipsisChars) {
14 return (0, utils_1.ellipsis)(anchorText, truncateLen, ellipsisChars);
15}
16exports.truncateEnd = truncateEnd;
17//# sourceMappingURL=truncate-end.js.map
Note: See TracBrowser for help on using the repository browser.