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