Profile redesign: Fields iteration (#37682)

This commit is contained in:
Echo authored and GitHub committed 2026-02-03 13:02:33 +00:00
1 parent 346ca87ee8
commit 0923e2cb26
13 files changed
+449 -383

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
export function isValidUrl(
url: string,
allowedProtocols = ['https:'],
): boolean {
try {
const parsedUrl = new URL(url);
return allowedProtocols.includes(parsedUrl.protocol);
} catch {
return false;
}
}