feat: export joinUrl util

This commit is contained in:
HPCesia 2025-03-18 19:57:31 +08:00
parent 7f7d57b94f
commit 6deace3551

View File

@ -1,4 +1,4 @@
function joinUrl(...parts: string[]): string {
export function joinUrl(...parts: string[]): string {
const joined = parts.join('/');
return joined.replace(/\/+/g, '/');
}