mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-27 19:27:01 +02:00
Switch to BiomeJS (#306)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
export function truncate(text: string, len: number): string {
|
||||
if (text.length <= len) return text;
|
||||
return text.slice(0, len) + '…';
|
||||
return `${text.slice(0, len)}…`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user