truncate-end.js 687 B

1234567891011121314151617
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.truncateEnd = void 0;
  4. var 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. */
  13. function truncateEnd(anchorText, truncateLen, ellipsisChars) {
  14. return (0, utils_1.ellipsis)(anchorText, truncateLen, ellipsisChars);
  15. }
  16. exports.truncateEnd = truncateEnd;
  17. //# sourceMappingURL=truncate-end.js.map