optimize: trust user's input

Signed-off-by: Zoupers <qy@zouper.cn>
This commit is contained in:
Zoupers 2025-05-20 22:44:56 +08:00
parent 3b53614f9b
commit ad81bd373e
No known key found for this signature in database
GPG key ID: 6F77683A1BC51B5C

View file

@ -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");
}