remove slash on the end 😭

This commit is contained in:
Pas 2025-04-05 17:23:53 -06:00
parent 0c677ef355
commit bd2fa442f6

View file

@ -57,10 +57,11 @@ function ProxyEdit({
const changeItem = useCallback(
(index: number, val: string) => {
const cleanedUrl = val.replace(/\/+$/, "");
setProxyUrls((s) => [
...(s ?? []).map((v, i) => {
if (i !== index) return v;
return val;
return cleanedUrl;
}),
]);
},