Add line breaks to description

This commit is contained in:
2025-09-11 22:51:23 +02:00
parent 86a66aad37
commit 5d4e802796
7 changed files with 53 additions and 19 deletions
+6 -1
View File
@@ -26,7 +26,12 @@ export function sluggy(object: {
}) + '-';
}
string += `${id}`;
const stringId = `${id}`;
// prevent '-' strings on weird Unicode names
if (string.length === 1) {
return stringId;
}
string += stringId;
return string;
}