mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-21 08:31:53 +02:00
minor tweak
This commit is contained in:
parent
4e88147058
commit
b943698178
1 changed files with 3 additions and 3 deletions
|
@ -58,8 +58,8 @@ function parseDirname(user) {
|
||||||
return user.url
|
return user.url
|
||||||
.split("//")
|
.split("//")
|
||||||
.at(1) // take everything after protocol
|
.at(1) // take everything after protocol
|
||||||
.replaceAll('/', '-') // and replace every slash with hyphen
|
.replace(/\/$/, '') // and remove the trailing slash if there is one
|
||||||
.replace(/-$/, ''); // and remove the trailing hyphen if there is one
|
.replaceAll('/', '-'); // and replace remaining slashs with hyphen
|
||||||
}
|
}
|
||||||
|
|
||||||
async function convert(text, from, to) {
|
async function convert(text, from, to) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue