Add existing to tracked
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
import { ellipsis } from '../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.
|
||||
*/
|
||||
export function truncateEnd(anchorText, truncateLen, ellipsisChars) {
|
||||
return ellipsis(anchorText, truncateLen, ellipsisChars);
|
||||
}
|
||||
//# sourceMappingURL=truncate-end.js.map
|
||||
Reference in New Issue
Block a user