Skip to content

Commit

Permalink
minor tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
wtchangdm committed Nov 8, 2024
1 parent 4e88147 commit b943698
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions processUsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b943698

Please sign in to comment.