Debian Codegraph @

src/truncate/TruncateEnd.js

raw symbols SCIP
1 /*global Autolinker */
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 Autolinker.truncate.TruncateEnd = function(anchorText, truncateLen, ellipsisChars){
11 return Autolinker.Util.ellipsis( anchorText, truncateLen, ellipsisChars );
12 };