fix: compile error

This commit is contained in:
Manuel Ruwe 2022-12-15 19:54:59 +01:00
parent 17f98a87c7
commit 5f164202a2

View File

@ -23,7 +23,7 @@ const getProgressString = (percent) => {
* @returns {String}
*/
// TODO do this with something like wcwidth
function getMaxWidthString = (string) => {
function getMaxWidthString (string) {
const NUMBER_OF_CHARS = 12;
if (string.length > NUMBER_OF_CHARS) {
return string.slice(0, NUMBER_OF_CHARS - 3) + "...";