From b4aca729ddae0526b66822698db7066cb09e1682 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 12 Jan 2025 18:00:54 +1100 Subject: bar --- utils/strings.ts | 1 + 1 file changed, 1 insertion(+) create mode 100644 utils/strings.ts (limited to 'utils/strings.ts') diff --git a/utils/strings.ts b/utils/strings.ts new file mode 100644 index 0000000..e5bc43e --- /dev/null +++ b/utils/strings.ts @@ -0,0 +1 @@ +export const ellipsize = (str: string, len = 40) => (str.length > len ? `${str.slice(0, len - 1)}…` : str); -- cgit v1.2.3-freya