Longer shortened URLs
parent
ba837ad9af
commit
b4a8da4c27
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue