mirror of
https://codeberg.org/HPCesia/AstralHalo.git
synced 2025-04-08 17:34:27 +08:00
feat: export joinUrl util
This commit is contained in:
parent
7f7d57b94f
commit
6deace3551
@ -1,4 +1,4 @@
|
||||
function joinUrl(...parts: string[]): string {
|
||||
export function joinUrl(...parts: string[]): string {
|
||||
const joined = parts.join('/');
|
||||
return joined.replace(/\/+/g, '/');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user