This commit is contained in:
pandeymangg
2026-02-09 16:28:41 +05:30
parent 1937efdfc0
commit 5d13d03513

View File

@@ -19,7 +19,8 @@ export const ZStorageUrl = z.string().refine(
}
// Otherwise validate as URL
try {
new URL(val);
// Using void to satisfy ESLint "no-new" rule while still validating the URL
void new URL(val);
return true;
} catch {
return false;