Longer shortened URLs
This commit is contained in:
parent
ba837ad9af
commit
b4a8da4c27
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue