main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
562 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | /**
|
---|
| 2 | * Date: 2015-10-05
|
---|
| 3 | * Author: Kasper Søfren <soefritz@gmail.com> (https://github.com/kafoso)
|
---|
| 4 | *
|
---|
| 5 | * A truncation feature, where the ellipsis will be placed in the dead-center of the URL.
|
---|
| 6 | *
|
---|
| 7 | * @param {String} url A URL.
|
---|
| 8 | * @param {Number} truncateLen The maximum length of the truncated output URL string.
|
---|
| 9 | * @param {String} ellipsisChars The characters to place within the url, e.g. "..".
|
---|
| 10 | * @return {String} The truncated URL.
|
---|
| 11 | */
|
---|
| 12 | export declare function truncateMiddle(url: string, truncateLen: number, ellipsisChars?: string): string;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.