mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 20:23:49 +01:00
remove trailing slash
This commit is contained in:
parent
d0058174bc
commit
7a7de755d1
@ -224,10 +224,9 @@ export default define(meta, paramDef, async (ps, me) => {
|
|||||||
if (set.recommendedInstances?.length > 0) {
|
if (set.recommendedInstances?.length > 0) {
|
||||||
set.recommendedInstances.forEach((instance, index) => {
|
set.recommendedInstances.forEach((instance, index) => {
|
||||||
if (/^https?:\/\//i.test(instance)) {
|
if (/^https?:\/\//i.test(instance)) {
|
||||||
set.recommendedInstances![index] = instance.replace(
|
set.recommendedInstances![index] = instance
|
||||||
/^https?:\/\//i,
|
.replace(/^https?:\/\//i, "")
|
||||||
"",
|
.replace(/\/$/, "");
|
||||||
);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user