remove trailing slash
This commit is contained in:
parent
f3aa965c38
commit
7be2b16215
1 changed files with 3 additions and 4 deletions
|
@ -224,10 +224,9 @@ export default define(meta, paramDef, async (ps, me) => {
|
|||
if (set.recommendedInstances?.length > 0) {
|
||||
set.recommendedInstances.forEach((instance, index) => {
|
||||
if (/^https?:\/\//i.test(instance)) {
|
||||
set.recommendedInstances![index] = instance.replace(
|
||||
/^https?:\/\//i,
|
||||
"",
|
||||
);
|
||||
set.recommendedInstances![index] = instance
|
||||
.replace(/^https?:\/\//i, "")
|
||||
.replace(/\/$/, "");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue