renovate/lib/util/url.ts

4 lines
96 B
TypeScript
Raw Normal View History

export function ensureTrailingSlash(url: string): string {
return url.replace(/\/?$/, '/');
}