mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-31 07:50:07 +00:00
4 lines
182 B
TypeScript
4 lines
182 B
TypeScript
// Terrible shim for Node's URL module. I miss Node.
|
|
export function resolveURLs (...urlFragments: string[]) {
|
|
return urlFragments.map(x => x.replace(/^\/|\/$/, '')).join('/');
|
|
} |