v3: added password change/reset feature
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
export function normalizeUrl(input: string): string {
|
||||
const s = input.trim();
|
||||
if (!s || /^https?:\/\//i.test(s)) return s;
|
||||
if (s.startsWith("//")) return `https:${s}`;
|
||||
return `https://${s}`;
|
||||
}
|
||||
|
||||
export function dumpUrl(dump: { id: string; slug?: string }): string {
|
||||
return `/dumps/${dump.slug ?? dump.id}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user