1
0
forked from Rowland/EG
EG/Cesium-1.132/node_modules/autolinker/dist/commonjs/truncate/truncate-end.js
2025-08-25 17:48:13 +08:00

16 lines
657 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.truncateEnd = truncateEnd;
var utils_1 = require("../utils");
/**
* A truncation feature where the ellipsis will be placed at the end of the URL.
*
* @param {String} anchorText
* @param {Number} truncateLen The maximum length of the truncated output URL string.
* @param {String} ellipsisChars The characters to place within the url, e.g. "..".
* @return {String} The truncated URL.
*/
function truncateEnd(anchorText, truncateLen, ellipsisChars) {
return (0, utils_1.ellipsis)(anchorText, truncateLen, ellipsisChars);
}
//# sourceMappingURL=truncate-end.js.map