diff options
| author | 8cy <[email protected]> | 2020-07-23 23:24:17 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-07-23 23:24:17 -0700 |
| commit | bb511abc03bb66848947e37a999502b813c77269 (patch) | |
| tree | 612c010fc8317e1cdf11471a18aad0270819d33e /src/utils/truncateText.ts | |
| parent | fix: if clear amount equal or over 100, round down to 99 (diff) | |
| download | dep-core-bb511abc03bb66848947e37a999502b813c77269.tar.xz dep-core-bb511abc03bb66848947e37a999502b813c77269.zip | |
goodbye old uwufier :cry:
Diffstat (limited to 'src/utils/truncateText.ts')
| -rw-r--r-- | src/utils/truncateText.ts | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/utils/truncateText.ts b/src/utils/truncateText.ts deleted file mode 100644 index f2fa7d0..0000000 --- a/src/utils/truncateText.ts +++ /dev/null @@ -1,6 +0,0 @@ -/** -* @param {string} string String to truncate -* @param {number} [number=2048] Number to truncate to -* @returns {string} Truncated string or original if string was short enough to begin with -*/ -module.exports = (string: any, number = 2048) => (string.length > number ? `${string.substring(0, number - 3)}...` : string);
\ No newline at end of file |