main
Last change
on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
541 bytes
|
Line | |
---|
1 | import { ellipsis } from '../utils';
|
---|
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 | export function truncateEnd(anchorText, truncateLen, ellipsisChars) {
|
---|
11 | return ellipsis(anchorText, truncateLen, ellipsisChars);
|
---|
12 | }
|
---|
13 | //# sourceMappingURL=truncate-end.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.