Longer shortened URLs

zio/stable
Paul Frazee 2022-11-23 10:44:55 -06:00
parent ba837ad9af
commit b4a8da4c27
1 changed files with 2 additions and 2 deletions

View File

@ -189,8 +189,8 @@ export function toShortUrl(url: string): string {
(urlp.pathname === '/' ? '' : urlp.pathname) + (urlp.pathname === '/' ? '' : urlp.pathname) +
urlp.search + urlp.search +
urlp.hash urlp.hash
if (shortened.length > 20) { if (shortened.length > 30) {
return shortened.slice(0, 17) + '...' return shortened.slice(0, 27) + '...'
} }
return shortened return shortened
} catch (e) { } catch (e) {