mirror of
https://github.com/astral-sh/setup-uv.git
synced 2026-02-17 22:41:45 +00:00
optimize: trust user's input
Signed-off-by: Zoupers <qy@zouper.cn>
This commit is contained in:
parent
3b53614f9b
commit
ad81bd373e
1 changed files with 2 additions and 6 deletions
|
|
@ -87,9 +87,5 @@ function expandTilde(input: string): string {
|
|||
}
|
||||
|
||||
function getServerUrl(): string {
|
||||
const url = core.getInput("server-url");
|
||||
if(url.endsWith("/")) {
|
||||
return url.replaceAll(/\/+$/g, "")
|
||||
}
|
||||
return url;
|
||||
}
|
||||
return core.getInput("server-url");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue