From b4a8da4c27081fdc6acfb924b263b93fed4cd6c2 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Wed, 23 Nov 2022 10:44:55 -0600 Subject: Longer shortened URLs --- src/lib/strings.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/strings.ts') diff --git a/src/lib/strings.ts b/src/lib/strings.ts index ea2a4dd9f..eaccb63a0 100644 --- a/src/lib/strings.ts +++ b/src/lib/strings.ts @@ -189,8 +189,8 @@ export function toShortUrl(url: string): string { (urlp.pathname === '/' ? '' : urlp.pathname) + urlp.search + urlp.hash - if (shortened.length > 20) { - return shortened.slice(0, 17) + '...' + if (shortened.length > 30) { + return shortened.slice(0, 27) + '...' } return shortened } catch (e) { -- cgit 1.4.1