mirror of
https://github.com/p-stream/p-stream.git
synced 2026-01-11 20:10:32 +00:00
remove slash on the end 😭
This commit is contained in:
parent
0c677ef355
commit
bd2fa442f6
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}),
|
||||
]);
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue