mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-05-19 14:17:23 +02:00
Split codebase (#455)
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
export function truncate(text: string, len: number): string {
|
||||
if (text.length <= len) return text;
|
||||
return `${text.slice(0, len)}…`;
|
||||
}
|
||||
Reference in New Issue
Block a user