Skip to content

Commit 4d6edd6

Browse files
authored
Merge pull request #1134 from brian6932/fix/utils.protocolHost-trim-multiple-slashes
fix(`utils.protocolHost`): Trim multiple trailing slashes
2 parents 7e35e67 + c7abe99 commit 4d6edd6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/assets/javascripts/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function getNextInstance(currentInstanceUrl, instances) {
2424
* @param {URL} url
2525
*/
2626
function protocolHost(url) {
27-
const pathname = url.pathname.replace(/\/$/, "")
27+
const pathname = url.pathname.replace(/\/+$/, "")
2828

2929
// workaround
3030
if (pathname == "/TekstoLibre" && url.host.endsWith("github.io"))

0 commit comments

Comments
 (0)